chore(cli): upgrade cross platform testing toolchains (#1471)
This commit is contained in:
parent
dc372d9153
commit
b2e1bb234f
1 changed files with 26 additions and 15 deletions
|
@ -72,7 +72,7 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install gcc-arm-linux-gnueabihf -y
|
sudo apt-get install gcc-arm-linux-gnueabihf -y
|
||||||
build: |
|
build: |
|
||||||
yarn build --target=armv7-unknown-linux-gnueabihf
|
yarn build --target armv7-unknown-linux-gnueabihf
|
||||||
arm-linux-gnueabihf-strip *.node
|
arm-linux-gnueabihf-strip *.node
|
||||||
- host: ubuntu-latest
|
- host: ubuntu-latest
|
||||||
target: 'aarch64-linux-android'
|
target: 'aarch64-linux-android'
|
||||||
|
@ -197,7 +197,7 @@ jobs:
|
||||||
curl -qL https://www.npmjs.com/install.sh | sh
|
curl -qL https://www.npmjs.com/install.sh | sh
|
||||||
npm install --location=global --ignore-scripts yarn
|
npm install --location=global --ignore-scripts yarn
|
||||||
curl https://sh.rustup.rs -sSf --output rustup.sh
|
curl https://sh.rustup.rs -sSf --output rustup.sh
|
||||||
sh rustup.sh -y --profile minimal --default-toolchain stable
|
sh rustup.sh -y --profile minimal --default-toolchain beta
|
||||||
export PATH="/usr/local/cargo/bin:$PATH"
|
export PATH="/usr/local/cargo/bin:$PATH"
|
||||||
echo "~~~~ rustc --version ~~~~"
|
echo "~~~~ rustc --version ~~~~"
|
||||||
rustc --version
|
rustc --version
|
||||||
|
@ -352,8 +352,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
|
@ -372,11 +370,17 @@ jobs:
|
||||||
yarn config set supportedArchitectures.libc "glibc"
|
yarn config set supportedArchitectures.libc "glibc"
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
with:
|
||||||
|
platforms: arm64
|
||||||
|
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
|
|
||||||
- name: Setup and run tests
|
- name: Setup and run tests
|
||||||
uses: addnab/docker-run-action@v3
|
uses: addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
image: ghcr.io/napi-rs/napi-rs/nodejs:aarch64-\${{ matrix.node }}
|
image: node:\${{ matrix.node }}-slim
|
||||||
options: -v \${{ github.workspace }}:/build -w /build
|
options: --platform linux/arm64 -v \${{ github.workspace }}:/build -w /build
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
yarn test
|
yarn test
|
||||||
|
@ -390,8 +394,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
|
@ -410,14 +412,19 @@ jobs:
|
||||||
yarn config set supportedArchitectures.libc "musl"
|
yarn config set supportedArchitectures.libc "musl"
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
with:
|
||||||
|
platforms: arm64
|
||||||
|
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
|
|
||||||
- name: Setup and run tests
|
- name: Setup and run tests
|
||||||
uses: addnab/docker-run-action@v3
|
uses: addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
image: multiarch/alpine:aarch64-latest-stable
|
image: node:lts-alpine
|
||||||
options: -v \${{ github.workspace }}:/build -w /build
|
options: --platform linux/arm64 -v \${{ github.workspace }}:/build -w /build
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
apk add nodejs npm yarn
|
|
||||||
yarn test
|
yarn test
|
||||||
|
|
||||||
test-linux-arm-gnueabihf-binding:
|
test-linux-arm-gnueabihf-binding:
|
||||||
|
@ -431,8 +438,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
|
@ -450,11 +455,17 @@ jobs:
|
||||||
yarn config set supportedArchitectures.cpu "arm"
|
yarn config set supportedArchitectures.cpu "arm"
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
with:
|
||||||
|
platforms: arm
|
||||||
|
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
|
|
||||||
- name: Setup and run tests
|
- name: Setup and run tests
|
||||||
uses: addnab/docker-run-action@v3
|
uses: addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
image: ghcr.io/napi-rs/napi-rs/nodejs:armhf-\${{ matrix.node }}
|
image: node:\${{ matrix.node }}-bullseye-slim
|
||||||
options: -v \${{ github.workspace }}:/build -w /build
|
options: --platform linux/arm/v7 -v \${{ github.workspace }}:/build -w /build
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
yarn test
|
yarn test
|
||||||
|
|
Loading…
Reference in a new issue