@@ -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
+ corepack disable &&
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
+ corepack disable &&
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
@@ -403,7 +411,7 @@ jobs:
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
0 commit comments