@@ -42,12 +42,15 @@ jobs:
42
42
docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
43
43
build : |-
44
44
set -e &&
45
+ npm i -g corepack@latest &&
45
46
pnpm build --target x86_64-unknown-linux-gnu &&
46
47
strip *.node
47
48
- host : ubuntu-latest
48
49
target : x86_64-unknown-linux-musl
49
50
docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
50
- build : set -e && pnpm build && strip *.node
51
+ build : |-
52
+ set -e &&
53
+ pnpm build && strip *.node
51
54
- host : macos-latest
52
55
target : aarch64-apple-darwin
53
56
build : |
58
61
docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
59
62
build : |-
60
63
set -e &&
64
+ npm i -g corepack@latest &&
61
65
pnpm build --target aarch64-unknown-linux-gnu &&
62
66
aarch64-unknown-linux-gnu-strip *.node
63
67
- host : ubuntu-latest
@@ -124,8 +128,12 @@ jobs:
124
128
run : ${{ matrix.settings.setup }}
125
129
if : ${{ matrix.settings.setup }}
126
130
shell : bash
131
+ - name : Disable corepack
132
+ run : corepack disable
127
133
- name : Install dependencies
128
- run : pnpm install
134
+ run : |
135
+ pnpm install
136
+
129
137
- name : Build in docker
130
138
uses : addnab/docker-run-action@v3
131
139
if : ${{ matrix.settings.docker }}
@@ -138,7 +146,7 @@ jobs:
138
146
if : ${{ !matrix.settings.docker }}
139
147
shell : bash
140
148
- name : Upload artifact
141
- uses : actions/upload-artifact@v3
149
+ uses : actions/upload-artifact@v4
142
150
with :
143
151
name : bindings-${{ matrix.settings.target }}
144
152
path : ${{ env.APP_NAME }}.*.node
@@ -167,7 +175,7 @@ jobs:
167
175
# - name: Install dependencies
168
176
# run: pnpm install
169
177
# - name: Download artifacts
170
- # uses: actions/download-artifact@v3
178
+ # uses: actions/download-artifact@v4
171
179
# with:
172
180
# name: bindings-${{ matrix.settings.target }}
173
181
# path: .
@@ -201,7 +209,7 @@ jobs:
201
209
- name : Install dependencies
202
210
run : pnpm install
203
211
- name : Download artifacts
204
- uses : actions/download-artifact@v3
212
+ uses : actions/download-artifact@v4
205
213
with :
206
214
name : bindings-x86_64-unknown-linux-gnu
207
215
path : .
@@ -237,7 +245,7 @@ jobs:
237
245
pnpm config set supportedArchitectures.libc "musl"
238
246
pnpm install
239
247
- name : Download artifacts
240
- uses : actions/download-artifact@v3
248
+ uses : actions/download-artifact@v4
241
249
with :
242
250
name : bindings-x86_64-unknown-linux-musl
243
251
path : .
@@ -264,7 +272,7 @@ jobs:
264
272
with :
265
273
version : 9
266
274
- name : Download artifacts
267
- uses : actions/download-artifact@v3
275
+ uses : actions/download-artifact@v4
268
276
with :
269
277
name : bindings-aarch64-unknown-linux-gnu
270
278
path : .
@@ -303,7 +311,7 @@ jobs:
303
311
with :
304
312
version : 9
305
313
- name : Download artifacts
306
- uses : actions/download-artifact@v3
314
+ uses : actions/download-artifact@v4
307
315
with :
308
316
name : bindings-aarch64-unknown-linux-musl
309
317
path : .
@@ -346,7 +354,7 @@ jobs:
346
354
with :
347
355
version : 9
348
356
- name : Download artifacts
349
- uses : actions/download-artifact@v3
357
+ uses : actions/download-artifact@v4
350
358
with :
351
359
name : bindings-armv7-unknown-linux-gnueabihf
352
360
path : .
@@ -391,19 +399,19 @@ jobs:
391
399
- name : Install dependencies
392
400
run : pnpm install
393
401
- name : Download macOS x64 artifact
394
- uses : actions/download-artifact@v3
402
+ uses : actions/download-artifact@v4
395
403
with :
396
404
name : bindings-x86_64-apple-darwin
397
405
path : artifacts
398
406
- name : Download macOS arm64 artifact
399
- uses : actions/download-artifact@v3
407
+ uses : actions/download-artifact@v4
400
408
with :
401
409
name : bindings-aarch64-apple-darwin
402
410
path : artifacts
403
411
- name : Combine binaries
404
412
run : pnpm universal
405
413
- name : Upload artifact
406
- uses : actions/upload-artifact@v3
414
+ uses : actions/upload-artifact@v4
407
415
with :
408
416
name : bindings-universal-apple-darwin
409
417
path : ${{ env.APP_NAME }}.*.node
@@ -473,7 +481,7 @@ jobs:
473
481
- name : Install dependencies
474
482
run : pnpm install
475
483
- name : Download all artifacts
476
- uses : actions/download-artifact@v3
484
+ uses : actions/download-artifact@v4
477
485
with :
478
486
path : artifacts
479
487
- name : Move artifacts
0 commit comments