14
14
# - release:
15
15
16
16
jobs :
17
- build-linux-and-osx :
17
+ build-linux-and-macos-x64 :
18
18
runs-on : ubuntu-latest
19
19
steps :
20
20
- name : Checkout
35
35
- name : Upload artifacts
36
36
37
37
with :
38
- name : build-linux-and-osx
38
+ name : build-linux-and-macos-x64
39
+ if-no-files-found : error
40
+ path : |
41
+ coverage/
42
+ out/
43
+ package.json
44
+ vendor/
45
+
46
+ build-macos-arm64 :
47
+ runs-on : ubuntu-latest
48
+ needs : build-linux-and-macos-x64
49
+ steps :
50
+ - name : Checkout
51
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
52
+ - uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
53
+ with :
54
+ node-version : 18
55
+ cache : ' npm'
56
+ architecture : arm64
57
+ - name : Install deps
58
+ run : npm ci
59
+ - name : Test
60
+ run : make test
61
+ - name : Build
62
+ run : |
63
+ make build
64
+ make build_macos_x64
65
+ make build_macos_arm64
66
+ - name : Upload artifacts
67
+
68
+ with :
69
+ name : build-macos-arm64
39
70
if-no-files-found : error
40
71
path : |
41
72
coverage/
46
77
build-alpine :
47
78
runs-on : ubuntu-latest
48
79
container : alpine:3.20.3@sha256:1e42bbe2508154c9126d48c2b8a75420c3544343bf86fd041fb7527e017a4b4a
49
- needs : build-linux-and-osx
80
+ needs : build-linux-and-macos-x64
50
81
steps :
51
82
- name : Checkout
52
83
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
88
119
89
120
build-windows :
90
121
runs-on : windows-latest
91
- needs : build-linux-and-osx
122
+ needs : build-linux-and-macos-x64
92
123
steps :
93
124
- name : Checkout
94
125
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -116,7 +147,7 @@ jobs:
116
147
117
148
test-linux :
118
149
runs-on : ubuntu-latest
119
- needs : build-linux-and-osx
150
+ needs : build-linux-and-macos-x64
120
151
steps :
121
152
- name : Checkout
122
153
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -125,7 +156,7 @@ jobs:
125
156
node-version : 18
126
157
127
158
with :
128
- name : build-linux-and-osx
159
+ name : build-linux-and-macos-x64
129
160
- name : Confirm that linux uploader binary is static
130
161
run : (file out/codecov-linux | grep 'static') || exit ${?}
131
162
- name : Remove test coverage files
@@ -152,7 +183,7 @@ jobs:
152
183
153
184
test-linux-without-git :
154
185
runs-on : ubuntu-latest
155
- needs : build-linux-and-osx
186
+ needs : build-linux-and-macos-x64
156
187
steps :
157
188
- name : Checkout
158
189
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -161,7 +192,7 @@ jobs:
161
192
node-version : 18
162
193
163
194
with :
164
- name : build-linux-and-osx
195
+ name : build-linux-and-macos-x64
165
196
- name : Remove .git directory
166
197
run : rm -rf .git
167
198
- name : Remove test coverage files
@@ -184,13 +215,13 @@ jobs:
184
215
185
216
test-macos-x64 :
186
217
runs-on : macos-latest-large
187
- needs : build-linux-and-osx
218
+ needs : build-linux-and-macos-x64
188
219
steps :
189
220
- name : Checkout
190
221
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
191
222
192
223
with :
193
- name : build-linux-and-osx
224
+ name : build-linux-and-macos-x64
194
225
- name : Remove test coverage files
195
226
run : rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
196
227
- name : Update exec permission
@@ -214,13 +245,13 @@ jobs:
214
245
215
246
test-macos-x64-without-git :
216
247
runs-on : macos-latest-large
217
- needs : build-linux-and-osx
248
+ needs : build-linux-and-macos-x64
218
249
steps :
219
250
- name : Checkout
220
251
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
221
252
222
253
with :
223
- name : build-linux-and-osx
254
+ name : build-linux-and-macos-x64
224
255
- name : Remove .git directory
225
256
run : rm -rf .git
226
257
- name : Remove test coverage files
@@ -243,13 +274,13 @@ jobs:
243
274
244
275
test-macos-arm64 :
245
276
runs-on : macos-latest
246
- needs : build-linux-and-osx
277
+ needs : build-macos-arm64
247
278
steps :
248
279
- name : Checkout
249
280
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
250
281
251
282
with :
252
- name : build-linux-and-osx
283
+ name : build-macos-arm64
253
284
- name : Remove test coverage files
254
285
run : rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
255
286
- name : Update exec permission
@@ -273,13 +304,13 @@ jobs:
273
304
274
305
test-macos-arm64-without-git :
275
306
runs-on : macos-latest
276
- needs : build-linux-and-osx
307
+ needs : build-macos-arm64
277
308
steps :
278
309
- name : Checkout
279
310
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
280
311
281
312
with :
282
- name : build-linux-and-osx
313
+ name : build-macos-arm64
283
314
- name : Remove .git directory
284
315
run : rm -rf .git
285
316
- name : Remove test coverage files
0 commit comments