47
47
- host : ubuntu-latest
48
48
target : x86_64-unknown-linux-musl
49
49
docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
50
- build : set -e && pnpm build && strip *.node
50
+ build : |-
51
+ set -e &&
52
+ pnpm build && strip *.node
51
53
- host : macos-latest
52
54
target : aarch64-apple-darwin
53
55
build : |
@@ -125,7 +127,12 @@ jobs:
125
127
if : ${{ matrix.settings.setup }}
126
128
shell : bash
127
129
- name : Install dependencies
128
- run : pnpm install
130
+ run : |
131
+ corepack enable
132
+ corepack prepare pnpm@latest --activate
133
+ npm config set registry https://registry.npmmirror.com
134
+ pnpm install --no-frozen-lockfile
135
+
129
136
- name : Build in docker
130
137
uses : addnab/docker-run-action@v3
131
138
if : ${{ matrix.settings.docker }}
@@ -138,7 +145,7 @@ jobs:
138
145
if : ${{ !matrix.settings.docker }}
139
146
shell : bash
140
147
- name : Upload artifact
141
- uses : actions/upload-artifact@v3
148
+ uses : actions/upload-artifact@v4
142
149
with :
143
150
name : bindings-${{ matrix.settings.target }}
144
151
path : ${{ env.APP_NAME }}.*.node
@@ -403,7 +410,7 @@ jobs:
403
410
- name : Combine binaries
404
411
run : pnpm universal
405
412
- name : Upload artifact
406
- uses : actions/upload-artifact@v3
413
+ uses : actions/upload-artifact@v4
407
414
with :
408
415
name : bindings-universal-apple-darwin
409
416
path : ${{ env.APP_NAME }}.*.node
0 commit comments