-
Notifications
You must be signed in to change notification settings - Fork 515
61 lines (59 loc) · 1.39 KB
/
dry-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Dry Build
on:
pull_request:
branches:
- main
jobs:
build_windows:
name: Build for Windows
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
arch: [ arm64, amd64 ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: '1.19.3'
cache: true
- run: go build -o ipatool-$GOOS-$GOARCH.exe
env:
GOOS: windows
GOARCH: ${{ matrix.arch }}
build_linux:
name: Build for Linux
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
arch: [ arm64, amd64 ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: '1.19.3'
cache: true
- run: go build -o ipatool-$GOOS-$GOARCH
env:
GOOS: linux
GOARCH: ${{ matrix.arch }}
build_macos:
name: Build for macOS
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
arch: [ arm64, amd64 ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: '1.19.3'
cache: true
- run: go build -o ipatool-$GOOS-$GOARCH
env:
GOOS: darwin
GOARCH: ${{ matrix.arch }}
CGO_CFLAGS: -mmacosx-version-min=10.15
CGO_LDFLAGS: -mmacosx-version-min=10.15