@@ -32,59 +32,59 @@ jobs:
32
32
- host : macos-latest
33
33
target : x86_64-apple-darwin
34
34
build : |
35
- yarn build --target x86_64-apple-darwin
35
+ pnpm build --target x86_64-apple-darwin
36
36
strip -x *.node
37
37
- host : windows-latest
38
- build : yarn build
38
+ build : pnpm build
39
39
target : x86_64-pc-windows-msvc
40
40
- host : ubuntu-latest
41
41
target : x86_64-unknown-linux-gnu
42
42
docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
43
43
build : |-
44
44
set -e &&
45
- yarn build --target x86_64-unknown-linux-gnu &&
45
+ pnpm build --target x86_64-unknown-linux-gnu &&
46
46
strip *.node
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 && yarn build && strip *.node
50
+ build : set -e && pnpm build && strip *.node
51
51
- host : macos-latest
52
52
target : aarch64-apple-darwin
53
53
build : |
54
- yarn build --target aarch64-apple-darwin
54
+ pnpm build --target aarch64-apple-darwin
55
55
strip -x *.node
56
56
- host : ubuntu-latest
57
57
target : aarch64-unknown-linux-gnu
58
58
docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
59
59
build : |-
60
60
set -e &&
61
- yarn build --target aarch64-unknown-linux-gnu &&
61
+ pnpm build --target aarch64-unknown-linux-gnu &&
62
62
aarch64-unknown-linux-gnu-strip *.node
63
63
- host : ubuntu-latest
64
64
target : armv7-unknown-linux-gnueabihf
65
65
setup : |
66
66
sudo apt-get update
67
67
sudo apt-get install gcc-arm-linux-gnueabihf -y
68
68
build : |
69
- yarn build --target armv7-unknown-linux-gnueabihf
69
+ pnpm build --target armv7-unknown-linux-gnueabihf
70
70
arm-linux-gnueabihf-strip *.node
71
71
- host : ubuntu-latest
72
72
target : aarch64-linux-android
73
73
build : |
74
- yarn build --target aarch64-linux-android
74
+ pnpm build --target aarch64-linux-android
75
75
${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip *.node
76
76
- host : ubuntu-latest
77
77
target : armv7-linux-androideabi
78
78
build : |
79
- yarn build --target armv7-linux-androideabi
79
+ pnpm build --target armv7-linux-androideabi
80
80
${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip *.node
81
81
- host : ubuntu-latest
82
82
target : aarch64-unknown-linux-musl
83
83
docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
84
84
build : |-
85
85
set -e &&
86
86
rustup target add aarch64-unknown-linux-musl &&
87
- yarn build --target aarch64-unknown-linux-musl &&
87
+ pnpm build --target aarch64-unknown-linux-musl &&
88
88
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node
89
89
name : stable - ${{ matrix.settings.target }} - node@18
90
90
runs-on : ${{ matrix.settings.host }}
96
96
with :
97
97
node-version : 18
98
98
check-latest : true
99
- cache : yarn
99
+ cache : pnpm
100
100
- name : Install
101
101
uses : dtolnay/rust-toolchain@stable
102
102
if : ${{ !matrix.settings.docker }}
@@ -122,7 +122,7 @@ jobs:
122
122
if : ${{ matrix.settings.setup }}
123
123
shell : bash
124
124
- name : Install dependencies
125
- run : yarn install
125
+ run : pnpm install
126
126
- name : Build in docker
127
127
uses : addnab/docker-run-action@v3
128
128
if : ${{ matrix.settings.docker }}
@@ -161,9 +161,9 @@ jobs:
161
161
# with:
162
162
# node-version: ${{ matrix.node }}
163
163
# check-latest: true
164
- # cache: yarn
164
+ # cache: pnpm
165
165
# - name: Install dependencies
166
- # run: yarn install
166
+ # run: pnpm install
167
167
# - name: Download artifacts
168
168
# uses: actions/download-artifact@v3
169
169
# with:
@@ -173,7 +173,7 @@ jobs:
173
173
# run: ls -R .
174
174
# shell: bash
175
175
# - name: Test bindings
176
- # run: yarn test
176
+ # run: pnpm test
177
177
test-linux-x64-gnu-binding :
178
178
name : Test bindings on Linux-x64-gnu - node@${{ matrix.node }}
179
179
needs :
@@ -186,15 +186,19 @@ jobs:
186
186
- ' 18'
187
187
runs-on : ubuntu-latest
188
188
steps :
189
- - uses : actions/checkout@v3
190
- - name : Setup node
191
- uses : actions/setup-node@v3
189
+ - name : Checkout
190
+ uses : actions/checkout@v4
191
+ - name : Setup pnpm
192
+
193
+ with :
194
+ version : 9
195
+ - name : Setup Node.js ${{ matrix.node }}
196
+ uses : actions/setup-node@v4
192
197
with :
193
198
node-version : ${{ matrix.node }}
194
- check-latest : true
195
- cache : yarn
199
+ cache : ' pnpm'
196
200
- name : Install dependencies
197
- run : yarn install
201
+ run : pnpm install
198
202
- name : Download artifacts
199
203
uses : actions/download-artifact@v3
200
204
with :
@@ -204,7 +208,7 @@ jobs:
204
208
run : ls -R .
205
209
shell : bash
206
210
- name : Test bindings
207
- run : docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim yarn test
211
+ run : docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim pnpm test
208
212
test-linux-x64-musl-binding :
209
213
name : Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }}
210
214
needs :
@@ -223,11 +227,11 @@ jobs:
223
227
with :
224
228
node-version : ${{ matrix.node }}
225
229
check-latest : true
226
- cache : yarn
230
+ cache : pnpm
227
231
- name : Install dependencies
228
232
run : |
229
- yarn config set supportedArchitectures.libc "musl"
230
- yarn install
233
+ pnpm config set supportedArchitectures.libc "musl"
234
+ pnpm install
231
235
- name : Download artifacts
232
236
uses : actions/download-artifact@v3
233
237
with :
@@ -237,7 +241,7 @@ jobs:
237
241
run : ls -R .
238
242
shell : bash
239
243
- name : Test bindings
240
- run : docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-alpine yarn test
244
+ run : docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-alpine pnpm test
241
245
test-linux-aarch64-gnu-binding :
242
246
name : Test bindings on aarch64-unknown-linux-gnu - node@${{ matrix.node }}
243
247
needs :
@@ -261,9 +265,9 @@ jobs:
261
265
shell : bash
262
266
- name : Install dependencies
263
267
run : |
264
- yarn config set supportedArchitectures.cpu "arm64"
265
- yarn config set supportedArchitectures.libc "glibc"
266
- yarn install
268
+ pnpm config set supportedArchitectures.cpu "arm64"
269
+ pnpm config set supportedArchitectures.libc "glibc"
270
+ pnpm install
267
271
- name : Set up QEMU
268
272
uses : docker/setup-qemu-action@v2
269
273
with :
@@ -276,7 +280,7 @@ jobs:
276
280
options : ' --platform linux/arm64 -v ${{ github.workspace }}:/build -w /build'
277
281
run : |
278
282
set -e
279
- yarn test
283
+ pnpm test
280
284
ls -la
281
285
test-linux-aarch64-musl-binding :
282
286
name : Test bindings on aarch64-unknown-linux-musl - node@${{ matrix.node }}
@@ -295,9 +299,9 @@ jobs:
295
299
shell : bash
296
300
- name : Install dependencies
297
301
run : |
298
- yarn config set supportedArchitectures.cpu "arm64"
299
- yarn config set supportedArchitectures.libc "musl"
300
- yarn install
302
+ pnpm config set supportedArchitectures.cpu "arm64"
303
+ pnpm config set supportedArchitectures.libc "musl"
304
+ pnpm install
301
305
- name : Set up QEMU
302
306
uses : docker/setup-qemu-action@v2
303
307
with :
@@ -310,7 +314,7 @@ jobs:
310
314
options : ' --platform linux/arm64 -v ${{ github.workspace }}:/build -w /build'
311
315
run : |
312
316
set -e
313
- yarn test
317
+ pnpm test
314
318
test-linux-arm-gnueabihf-binding :
315
319
name : Test bindings on armv7-unknown-linux-gnueabihf - node@${{ matrix.node }}
316
320
needs :
@@ -334,8 +338,8 @@ jobs:
334
338
shell : bash
335
339
- name : Install dependencies
336
340
run : |
337
- yarn config set supportedArchitectures.cpu "arm"
338
- yarn install
341
+ pnpm config set supportedArchitectures.cpu "arm"
342
+ pnpm install
339
343
- name : Set up QEMU
340
344
uses : docker/setup-qemu-action@v2
341
345
with :
@@ -348,7 +352,7 @@ jobs:
348
352
options : ' --platform linux/arm/v7 -v ${{ github.workspace }}:/build -w /build'
349
353
run : |
350
354
set -e
351
- yarn test
355
+ pnpm test
352
356
ls -la
353
357
universal-macOS :
354
358
name : Build universal macOS binary
@@ -362,9 +366,9 @@ jobs:
362
366
with :
363
367
node-version : 18
364
368
check-latest : true
365
- cache : yarn
369
+ cache : pnpm
366
370
- name : Install dependencies
367
- run : yarn install
371
+ run : pnpm install
368
372
- name : Download macOS x64 artifact
369
373
uses : actions/download-artifact@v3
370
374
with :
@@ -376,7 +380,7 @@ jobs:
376
380
name : bindings-aarch64-apple-darwin
377
381
path : artifacts
378
382
- name : Combine binaries
379
- run : yarn universal
383
+ run : pnpm universal
380
384
- name : Upload artifact
381
385
uses : actions/upload-artifact@v3
382
386
with :
@@ -401,15 +405,15 @@ jobs:
401
405
with :
402
406
node-version : 18
403
407
check-latest : true
404
- cache : yarn
408
+ cache : pnpm
405
409
- name : Install dependencies
406
- run : yarn install
410
+ run : pnpm install
407
411
- name : Download all artifacts
408
412
uses : actions/download-artifact@v3
409
413
with :
410
414
path : artifacts
411
415
- name : Move artifacts
412
- run : yarn artifacts
416
+ run : pnpm artifacts
413
417
- name : List packages
414
418
run : ls -R ./npm
415
419
shell : bash
0 commit comments