Skip to content

Commit f8a4324

Browse files
committed
Update actions.
1 parent b6e6ac5 commit f8a4324

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ jobs:
193193
usesh: true
194194
mem: 3000
195195
prepare: |
196-
pkg install -y curl node16 python2
196+
pkg install -y -f curl node libnghttp2
197197
curl -qL https://www.npmjs.com/install.sh | sh
198198
npm install --location=global --ignore-scripts yarn
199199
curl https://sh.rustup.rs -sSf --output rustup.sh
200-
sh rustup.sh -y --profile minimal --default-toolchain stable
200+
sh rustup.sh -y --profile minimal --default-toolchain beta
201201
export PATH="/usr/local/cargo/bin:$PATH"
202202
echo "~~~~ rustc --version ~~~~"
203203
rustc --version
@@ -218,6 +218,7 @@ jobs:
218218
yarn test
219219
rm -rf node_modules
220220
rm -rf target
221+
rm -rf .yarn/cache
221222
- name: Upload artifact
222223
uses: actions/upload-artifact@v3
223224
with:
@@ -430,7 +431,6 @@ jobs:
430431
- '18'
431432
runs-on: ubuntu-latest
432433
steps:
433-
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
434434
- uses: actions/checkout@v3
435435
- name: Download artifacts
436436
uses: actions/download-artifact@v3
@@ -440,20 +440,20 @@ jobs:
440440
- name: List packages
441441
run: ls -R .
442442
shell: bash
443-
- name: Cache NPM dependencies
444-
uses: actions/cache@v3
445-
with:
446-
path: .yarn/cache
447-
key: npm-cache-test-linux-arm-gnueabihf-${{ matrix.node }}
448443
- name: Install dependencies
449444
run: |
450445
yarn config set supportedArchitectures.cpu "arm"
451446
yarn install
447+
- name: Set up QEMU
448+
uses: docker/setup-qemu-action@v2
449+
with:
450+
platforms: arm
451+
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
452452
- name: Setup and run tests
453453
uses: addnab/docker-run-action@v3
454454
with:
455-
image: ghcr.io/napi-rs/napi-rs/nodejs:armhf-${{ matrix.node }}
456-
options: '-v ${{ github.workspace }}:/build -w /build'
455+
image: node:${{ matrix.node }}-bullseye-slim
456+
options: '--platform linux/arm/v7 -v ${{ github.workspace }}:/build -w /build'
457457
run: |
458458
set -e
459459
yarn test

0 commit comments

Comments
 (0)