@@ -74,14 +74,14 @@ jobs:
7474 rustup target add aarch64-unknown-linux-musl &&
7575 npm run build -- --target aarch64-unknown-linux-musl &&
7676 /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
7878 runs-on : ${{ matrix.settings.host }}
7979 steps :
8080 - uses : actions/checkout@v3
8181 - name : Setup node
8282 uses : actions/setup-node@v3
8383 with :
84- node-version : 16
84+ node-version : 20
8585 check-latest : true
8686 cache : npm
8787 architecture : ${{ matrix.settings.architecture }}
@@ -152,6 +152,7 @@ jobs:
152152 - ' 14'
153153 - ' 16'
154154 - ' 18'
155+ - ' 20'
155156 runs-on : ${{ matrix.settings.host }}
156157 steps :
157158 - uses : actions/checkout@v3
@@ -190,6 +191,7 @@ jobs:
190191 - ' 14'
191192 - ' 16'
192193 - ' 18'
194+ - ' 20'
193195 runs-on : ubuntu-latest
194196 steps :
195197 - uses : actions/checkout@v2
@@ -228,6 +230,7 @@ jobs:
228230 - ' 14'
229231 - ' 16'
230232 - ' 18'
233+ - ' 20'
231234 runs-on : ubuntu-latest
232235 steps :
233236 - uses : actions/checkout@v3
@@ -266,6 +269,7 @@ jobs:
266269 - ' 14'
267270 - ' 16'
268271 - ' 18'
272+ - ' 20'
269273 runs-on : ubuntu-latest
270274 steps :
271275 - run : docker run --rm --privileged multiarch/qemu-user-static:register --reset
@@ -285,11 +289,17 @@ jobs:
285289 key : npm-cache-test-linux-aarch64-gnu-${{ matrix.node }}-${{ hashFiles('package-lock.json') }}
286290 - name : Install dependencies
287291 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
288298 - name : Setup and run tests
289299 uses : addnab/docker-run-action@v3
290300 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'
293303 run : |
294304 set -e
295305 npm test
0 commit comments