@@ -74,14 +74,14 @@ jobs:
74
74
rustup target add aarch64-unknown-linux-musl &&
75
75
npm run build -- --target aarch64-unknown-linux-musl &&
76
76
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node
77
- name : stable - ${{ matrix.settings.target }} - node@16
77
+ name : stable - ${{ matrix.settings.target }} - node@20
78
78
runs-on : ${{ matrix.settings.host }}
79
79
steps :
80
80
- uses : actions/checkout@v3
81
81
- name : Setup node
82
82
uses : actions/setup-node@v3
83
83
with :
84
- node-version : 16
84
+ node-version : 20
85
85
check-latest : true
86
86
cache : npm
87
87
architecture : ${{ matrix.settings.architecture }}
@@ -152,6 +152,7 @@ jobs:
152
152
- ' 14'
153
153
- ' 16'
154
154
- ' 18'
155
+ - ' 20'
155
156
runs-on : ${{ matrix.settings.host }}
156
157
steps :
157
158
- uses : actions/checkout@v3
@@ -190,6 +191,7 @@ jobs:
190
191
- ' 14'
191
192
- ' 16'
192
193
- ' 18'
194
+ - ' 20'
193
195
runs-on : ubuntu-latest
194
196
steps :
195
197
- uses : actions/checkout@v2
@@ -228,6 +230,7 @@ jobs:
228
230
- ' 14'
229
231
- ' 16'
230
232
- ' 18'
233
+ - ' 20'
231
234
runs-on : ubuntu-latest
232
235
steps :
233
236
- uses : actions/checkout@v3
@@ -266,6 +269,7 @@ jobs:
266
269
- ' 14'
267
270
- ' 16'
268
271
- ' 18'
272
+ - ' 20'
269
273
runs-on : ubuntu-latest
270
274
steps :
271
275
- run : docker run --rm --privileged multiarch/qemu-user-static:register --reset
@@ -285,11 +289,17 @@ jobs:
285
289
key : npm-cache-test-linux-aarch64-gnu-${{ matrix.node }}-${{ hashFiles('package-lock.json') }}
286
290
- name : Install dependencies
287
291
run : npm clean-install --ignore-scripts
292
+ - name : Set up QEMU
293
+ uses : docker/setup-qemu-action@v2
294
+ with :
295
+ platforms : arm64
296
+ - name : Run Emulator
297
+ run : docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
288
298
- name : Setup and run tests
289
299
uses : addnab/docker-run-action@v3
290
300
with :
291
- image : ghcr.io/napi-rs/napi-rs/nodejs:aarch64- ${{ matrix.node }}
292
- options : ' -v ${{ github.workspace }}:/build -w /build'
301
+ image : node: ${{ matrix.node }}-slim
302
+ options : ' --platform linux/arm64 - v ${{ github.workspace }}:/build -w /build'
293
303
run : |
294
304
set -e
295
305
npm test
0 commit comments