File tree 3 files changed +56
-8
lines changed 3 files changed +56
-8
lines changed Original file line number Diff line number Diff line change 10
10
env :
11
11
GO111MODULE : on
12
12
jobs :
13
+ artifacts-darwin :
14
+ name : Artifacts Darwin
15
+ runs-on : macos-11
16
+ timeout-minutes : 20
17
+ steps :
18
+ - uses : actions/setup-go@v2
19
+ with :
20
+ go-version : 1.17.x
21
+ - uses : actions/checkout@v2
22
+ with :
23
+ fetch-depth : 1
24
+ - name : Make darwin artifacts
25
+ run : make artifacts-darwin
26
+ - name : " Upload artifacts"
27
+ uses : actions/upload-artifact@v2
28
+ with :
29
+ name : artifacts-darwin
30
+ path : _artifact/
13
31
release :
14
32
runs-on : ubuntu-20.04
33
+ needs : artifacts-darwin
15
34
timeout-minutes : 20
16
35
steps :
36
+ - uses : actions/download-artifact@v2
37
+ with :
38
+ name : artifacts-darwin
39
+ path : _artifact/
17
40
- uses : actions/setup-go@v2
18
41
with :
19
42
go-version : 1.17.x
43
+ - name : Install gcc-aarch64-linux-gnu
44
+ run : |
45
+ sudo apt-get update
46
+ sudo apt-get install -y gcc-aarch64-linux-gnu
20
47
- uses : actions/checkout@v2
21
48
- name : " Compile binaries"
22
49
run : make artifacts
Original file line number Diff line number Diff line change @@ -167,17 +167,34 @@ jobs:
167
167
EXAMPLE : ${{ matrix.example }}
168
168
run : ./hack/test-example.sh examples/$EXAMPLE
169
169
170
- artifacts :
171
- name : Artifacts
172
- # the release pipeline uses Linux, so we Linux here as well
170
+ artifacts-darwin :
171
+ name : Artifacts Darwin
172
+ runs-on : macos-11
173
+ timeout-minutes : 20
174
+ steps :
175
+ - uses : actions/setup-go@v2
176
+ with :
177
+ go-version : 1.17.x
178
+ - uses : actions/checkout@v2
179
+ with :
180
+ fetch-depth : 1
181
+ - name : Make darwin artifacts
182
+ run : make artifacts-darwin
183
+
184
+ artifacts-linux :
185
+ name : Artifacts Linux
173
186
runs-on : ubuntu-20.04
174
187
timeout-minutes : 20
175
188
steps :
176
189
- uses : actions/setup-go@v2
177
190
with :
178
191
go-version : 1.17.x
192
+ - name : Install gcc-aarch64-linux-gnu
193
+ run : |
194
+ sudo apt-get update
195
+ sudo apt-get install -y gcc-aarch64-linux-gnu
179
196
- uses : actions/checkout@v2
180
197
with :
181
198
fetch-depth : 1
182
- - name : Make artifacts
183
- run : make artifacts
199
+ - name : Make linux artifacts
200
+ run : make artifacts-linux
Original file line number Diff line number Diff line change @@ -73,14 +73,18 @@ uninstall:
73
73
clean :
74
74
rm -rf _output
75
75
76
- .PHONY : artifacts
77
- artifacts :
76
+ .PHONY : artifacts-darwin
77
+ artifacts-darwin :
78
78
mkdir -p _artifacts
79
79
GOOS=darwin GOARCH=amd64 make clean binaries
80
80
$(TAR ) -C _output/ -czvf _artifacts/lima-$(VERSION_TRIMMED ) -Darwin-x86_64.tar.gz ./
81
81
GOOS=darwin GOARCH=arm64 make clean binaries
82
82
$(TAR ) -C _output -czvf _artifacts/lima-$(VERSION_TRIMMED ) -Darwin-arm64.tar.gz ./
83
+
84
+ .PHONY : artifacts-linux
85
+ artifacts-linux :
86
+ mkdir -p _artifacts
83
87
GOOS=linux GOARCH=amd64 make clean binaries
84
88
$(TAR ) -C _output/ -czvf _artifacts/lima-$(VERSION_TRIMMED ) -Linux-x86_64.tar.gz ./
85
- GOOS=linux GOARCH=arm64 make clean binaries
89
+ GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc make clean binaries
86
90
$(TAR ) -C _output/ -czvf _artifacts/lima-$(VERSION_TRIMMED ) -Linux-aarch64.tar.gz ./
You can’t perform that action at this time.
0 commit comments