chore: ci components upgrade (#1512)
This commit is contained in:
parent
0904dc5d43
commit
60dea3d6d0
20 changed files with 54 additions and 120 deletions
7
.github/workflows/android-armv7.yml
vendored
7
.github/workflows/android-armv7.yml
vendored
|
@ -21,18 +21,15 @@ jobs:
|
|||
with:
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
check-latest: true
|
||||
|
||||
- name: List NDK Home
|
||||
run: ls -R "${ANDROID_NDK_LATEST_HOME}"
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
target: 'armv7-linux-androideabi'
|
||||
targets: armv7-linux-androideabi
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
|
|
7
.github/workflows/android.yml
vendored
7
.github/workflows/android.yml
vendored
|
@ -21,18 +21,15 @@ jobs:
|
|||
with:
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
check-latest: true
|
||||
|
||||
- name: List NDK Home
|
||||
run: ls -R "${ANDROID_NDK_LATEST_HOME}"
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
target: 'aarch64-linux-android'
|
||||
targets: aarch64-linux-android
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
|
|
15
.github/workflows/asan.yml
vendored
15
.github/workflows/asan.yml
vendored
|
@ -20,17 +20,14 @@ jobs:
|
|||
- name: Setup node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
check-latest: true
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: nightly
|
||||
profile: minimal
|
||||
components: rust-src
|
||||
override: true
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
|
@ -38,13 +35,7 @@ jobs:
|
|||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
key: nightly-ubuntu-node@16-cargo-cache
|
||||
|
||||
- name: Cache NPM dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .yarn/cache
|
||||
key: npm-cache-ubuntu-node@16
|
||||
key: nightly-ubuntu-node@18-cargo-cache
|
||||
|
||||
- name: 'Install dependencies'
|
||||
run: yarn install --immutable --mode=skip-build
|
||||
|
|
4
.github/workflows/bench.yaml
vendored
4
.github/workflows/bench.yaml
vendored
|
@ -26,11 +26,9 @@ jobs:
|
|||
cache: 'yarn'
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: default
|
||||
override: true
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
|
|
4
.github/workflows/check-all-features.yml
vendored
4
.github/workflows/check-all-features.yml
vendored
|
@ -33,11 +33,9 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
|
|
4
.github/workflows/cli-binary.yml
vendored
4
.github/workflows/cli-binary.yml
vendored
|
@ -24,11 +24,9 @@ jobs:
|
|||
cache: 'yarn'
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
|
|
18
.github/workflows/docker.yaml
vendored
18
.github/workflows/docker.yaml
vendored
|
@ -14,20 +14,20 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ secrets.GH_CONTAINER_UNAME }}
|
||||
password: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
- name: Build and push alpine
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
file: alpine.Dockerfile
|
||||
platforms: linux/amd64
|
||||
|
@ -35,7 +35,7 @@ jobs:
|
|||
tags: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
|
||||
|
||||
- name: Build and push debian
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
file: debian.Dockerfile
|
||||
platforms: linux/amd64
|
||||
|
@ -58,7 +58,7 @@ jobs:
|
|||
rm /usr/lib/llvm-15/lib/libc++abi.so
|
||||
|
||||
- name: Build and push debian aarch64 cross
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
file: debian-aarch64.Dockerfile
|
||||
platforms: linux/amd64
|
||||
|
@ -67,10 +67,10 @@ jobs:
|
|||
context: .
|
||||
|
||||
- name: Cleanup
|
||||
run: rm -rf "${{ github.workspace }}/lib"
|
||||
run: sudo rm -rf "${{ github.workspace }}/lib"
|
||||
|
||||
- name: Build and push debian with zig
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
file: debian-zig.Dockerfile
|
||||
platforms: linux/amd64
|
||||
|
@ -78,7 +78,7 @@ jobs:
|
|||
tags: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-zig
|
||||
|
||||
- name: Build and push alpine with zig
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
file: alpine-zig.Dockerfile
|
||||
platforms: linux/amd64
|
||||
|
|
5
.github/workflows/lint.yaml
vendored
5
.github/workflows/lint.yaml
vendored
|
@ -18,15 +18,12 @@ jobs:
|
|||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
check-latest: true
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: default
|
||||
override: true
|
||||
components: rustfmt, clippy
|
||||
|
||||
- name: Cache cargo
|
||||
|
|
17
.github/workflows/linux-aarch64-musl.yaml
vendored
17
.github/workflows/linux-aarch64-musl.yaml
vendored
|
@ -15,15 +15,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
check-latest: true
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install dependencies
|
||||
|
@ -42,11 +39,13 @@ jobs:
|
|||
yarn workspace compat-mode-examples build --target aarch64-unknown-linux-musl
|
||||
yarn workspace examples build --target aarch64-unknown-linux-musl
|
||||
|
||||
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
|
||||
- name: Setup and run tests
|
||||
uses: docker://multiarch/alpine:aarch64-latest-stable
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
args: >
|
||||
sh -c "
|
||||
apk add nodejs yarn && \
|
||||
yarn test
|
||||
"
|
||||
image: node:lts-alpine
|
||||
options: --platform linux/arm64 -v ${{ github.workspace }}:/build -w /build
|
||||
run: |
|
||||
set -e
|
||||
yarn test
|
||||
|
|
16
.github/workflows/linux-aarch64.yaml
vendored
16
.github/workflows/linux-aarch64.yaml
vendored
|
@ -15,8 +15,6 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup node
|
||||
|
@ -27,12 +25,10 @@ jobs:
|
|||
cache: 'yarn'
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
target: aarch64-unknown-linux-gnu
|
||||
targets: aarch64-unknown-linux-gnu
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
|
@ -45,7 +41,7 @@ jobs:
|
|||
- name: Install ziglang
|
||||
uses: goto-bus-stop/setup-zig@v2
|
||||
with:
|
||||
version: 0.10.0
|
||||
version: 0.10.1
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --immutable --mode=skip-build
|
||||
|
@ -56,9 +52,11 @@ jobs:
|
|||
- name: Cross build native tests
|
||||
run: yarn build:test:aarch64
|
||||
|
||||
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
|
||||
- name: Setup and run tests
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
image: ghcr.io/napi-rs/napi-rs/nodejs:aarch64-16
|
||||
options: -v ${{ github.workspace }}:/build -w /build
|
||||
image: node:lts-slim
|
||||
options: --platform linux/arm64 -v ${{ github.workspace }}:/build -w /build
|
||||
run: yarn test
|
||||
|
|
14
.github/workflows/linux-armv7.yaml
vendored
14
.github/workflows/linux-armv7.yaml
vendored
|
@ -15,8 +15,6 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup node
|
||||
|
@ -27,12 +25,10 @@ jobs:
|
|||
cache: 'yarn'
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
target: armv7-unknown-linux-gnueabihf
|
||||
targets: armv7-unknown-linux-gnueabihf
|
||||
|
||||
- name: Install ziglang
|
||||
uses: goto-bus-stop/setup-zig@v2
|
||||
|
@ -57,9 +53,11 @@ jobs:
|
|||
- name: Cross build native tests
|
||||
run: yarn build:test:armv7
|
||||
|
||||
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
|
||||
- name: Setup and run tests
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
image: ghcr.io/napi-rs/napi-rs/nodejs:armhf-16
|
||||
options: -v ${{ github.workspace }}:/build -w /build
|
||||
image: node:lts-bullseye-slim
|
||||
options: --platform linux/arm/v7 -v ${{ github.workspace }}:/build -w /build
|
||||
run: yarn test
|
||||
|
|
1
.github/workflows/linux-musl.yaml
vendored
1
.github/workflows/linux-musl.yaml
vendored
|
@ -21,7 +21,6 @@ jobs:
|
|||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
check-latest: true
|
||||
cache: 'yarn'
|
||||
|
||||
- name: 'Install dependencies'
|
||||
|
|
8
.github/workflows/memory-test.yml
vendored
8
.github/workflows/memory-test.yml
vendored
|
@ -21,15 +21,13 @@ jobs:
|
|||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
check-latest: true
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install stable
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable-x86_64-unknown-linux-gnu
|
||||
profile: minimal
|
||||
override: true
|
||||
targets: x86_64-unknown-linux-gnu
|
||||
toolchain: stable
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
|
|
5
.github/workflows/msrv.yml
vendored
5
.github/workflows/msrv.yml
vendored
|
@ -21,15 +21,12 @@ jobs:
|
|||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
check-latest: true
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: 1.57.0
|
||||
profile: minimal
|
||||
override: true
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
|
|
5
.github/workflows/test.yaml
vendored
5
.github/workflows/test.yaml
vendored
|
@ -28,15 +28,12 @@ jobs:
|
|||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
check-latest: true
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
|
|
7
.github/workflows/windows-arm.yml
vendored
7
.github/workflows/windows-arm.yml
vendored
|
@ -21,7 +21,6 @@ jobs:
|
|||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
check-latest: true
|
||||
cache: 'yarn'
|
||||
|
||||
- name: 'Install dependencies'
|
||||
|
@ -31,12 +30,10 @@ jobs:
|
|||
run: yarn build
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
target: aarch64-pc-windows-msvc
|
||||
targets: aarch64-pc-windows-msvc
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
|
|
12
.github/workflows/windows-i686.yml
vendored
12
.github/workflows/windows-i686.yml
vendored
|
@ -21,8 +21,6 @@ jobs:
|
|||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
check-latest: true
|
||||
architecture: 'x64'
|
||||
cache: 'yarn'
|
||||
|
||||
- name: 'Install dependencies'
|
||||
|
@ -33,12 +31,10 @@ jobs:
|
|||
run: yarn build
|
||||
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
target: i686-pc-windows-msvc
|
||||
targets: i686-pc-windows-msvc
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
|
@ -47,7 +43,7 @@ jobs:
|
|||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: stable-windows-i686-node@16-cargo-cache
|
||||
key: stable-windows-i686-node@18-cargo-cache
|
||||
|
||||
- name: Check build
|
||||
uses: actions-rs/cargo@v1
|
||||
|
@ -58,7 +54,7 @@ jobs:
|
|||
- name: Setup node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
check-latest: true
|
||||
architecture: 'x86'
|
||||
|
||||
|
|
7
.github/workflows/zig.yaml
vendored
7
.github/workflows/zig.yaml
vendored
|
@ -30,15 +30,12 @@ jobs:
|
|||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
check-latest: true
|
||||
cache: 'yarn'
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
target: ${{ matrix.target }}
|
||||
targets: ${{ matrix.target }}
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
FROM multiarch/ubuntu-core:arm64-focal
|
||||
|
||||
ARG NODE_VERSION=14
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y ca-certificates gnupg2 curl apt-transport-https && \
|
||||
curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \
|
||||
apt-get install -y nodejs && \
|
||||
npm install -g yarn pnpm
|
|
@ -1,9 +0,0 @@
|
|||
FROM multiarch/ubuntu-core:armhf-focal
|
||||
|
||||
ARG NODE_VERSION=14
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y ca-certificates gnupg2 curl apt-transport-https && \
|
||||
curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \
|
||||
apt-get install -y nodejs && \
|
||||
npm install -g yarn pnpm
|
Loading…
Reference in a new issue