@@ -42,12 +42,15 @@ jobs:
4242 docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
4343 build : |-
4444 set -e &&
45+ npm i -g corepack@latest &&
4546 pnpm build --target x86_64-unknown-linux-gnu &&
4647 strip *.node
4748 - host : ubuntu-latest
4849 target : x86_64-unknown-linux-musl
4950 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
5154 - host : macos-latest
5255 target : aarch64-apple-darwin
5356 build : |
5861 docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
5962 build : |-
6063 set -e &&
64+ npm i -g corepack@latest &&
6165 pnpm build --target aarch64-unknown-linux-gnu &&
6266 aarch64-unknown-linux-gnu-strip *.node
6367 - host : ubuntu-latest
@@ -124,8 +128,12 @@ jobs:
124128 run : ${{ matrix.settings.setup }}
125129 if : ${{ matrix.settings.setup }}
126130 shell : bash
131+ - name : Disable corepack
132+ run : corepack disable
127133 - name : Install dependencies
128- run : pnpm install
134+ run : |
135+ pnpm install
136+
129137 - name : Build in docker
130138 uses : addnab/docker-run-action@v3
131139 if : ${{ matrix.settings.docker }}
@@ -138,7 +146,7 @@ jobs:
138146 if : ${{ !matrix.settings.docker }}
139147 shell : bash
140148 - name : Upload artifact
141- uses : actions/upload-artifact@v3
149+ uses : actions/upload-artifact@v4
142150 with :
143151 name : bindings-${{ matrix.settings.target }}
144152 path : ${{ env.APP_NAME }}.*.node
@@ -167,7 +175,7 @@ jobs:
167175 # - name: Install dependencies
168176 # run: pnpm install
169177 # - name: Download artifacts
170- # uses: actions/download-artifact@v3
178+ # uses: actions/download-artifact@v4
171179 # with:
172180 # name: bindings-${{ matrix.settings.target }}
173181 # path: .
@@ -201,7 +209,7 @@ jobs:
201209 - name : Install dependencies
202210 run : pnpm install
203211 - name : Download artifacts
204- uses : actions/download-artifact@v3
212+ uses : actions/download-artifact@v4
205213 with :
206214 name : bindings-x86_64-unknown-linux-gnu
207215 path : .
@@ -237,7 +245,7 @@ jobs:
237245 pnpm config set supportedArchitectures.libc "musl"
238246 pnpm install
239247 - name : Download artifacts
240- uses : actions/download-artifact@v3
248+ uses : actions/download-artifact@v4
241249 with :
242250 name : bindings-x86_64-unknown-linux-musl
243251 path : .
@@ -264,7 +272,7 @@ jobs:
264272 with :
265273 version : 9
266274 - name : Download artifacts
267- uses : actions/download-artifact@v3
275+ uses : actions/download-artifact@v4
268276 with :
269277 name : bindings-aarch64-unknown-linux-gnu
270278 path : .
@@ -303,7 +311,7 @@ jobs:
303311 with :
304312 version : 9
305313 - name : Download artifacts
306- uses : actions/download-artifact@v3
314+ uses : actions/download-artifact@v4
307315 with :
308316 name : bindings-aarch64-unknown-linux-musl
309317 path : .
@@ -346,7 +354,7 @@ jobs:
346354 with :
347355 version : 9
348356 - name : Download artifacts
349- uses : actions/download-artifact@v3
357+ uses : actions/download-artifact@v4
350358 with :
351359 name : bindings-armv7-unknown-linux-gnueabihf
352360 path : .
@@ -391,19 +399,19 @@ jobs:
391399 - name : Install dependencies
392400 run : pnpm install
393401 - name : Download macOS x64 artifact
394- uses : actions/download-artifact@v3
402+ uses : actions/download-artifact@v4
395403 with :
396404 name : bindings-x86_64-apple-darwin
397405 path : artifacts
398406 - name : Download macOS arm64 artifact
399- uses : actions/download-artifact@v3
407+ uses : actions/download-artifact@v4
400408 with :
401409 name : bindings-aarch64-apple-darwin
402410 path : artifacts
403411 - name : Combine binaries
404412 run : pnpm universal
405413 - name : Upload artifact
406- uses : actions/upload-artifact@v3
414+ uses : actions/upload-artifact@v4
407415 with :
408416 name : bindings-universal-apple-darwin
409417 path : ${{ env.APP_NAME }}.*.node
@@ -473,7 +481,7 @@ jobs:
473481 - name : Install dependencies
474482 run : pnpm install
475483 - name : Download all artifacts
476- uses : actions/download-artifact@v3
484+ uses : actions/download-artifact@v4
477485 with :
478486 path : artifacts
479487 - name : Move artifacts
0 commit comments