From a57a59f735ca3d9ed61625ba6f69e3602bf2c723 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Sat, 8 Apr 2023 23:37:28 +0800 Subject: [PATCH] ci: remove depracated action (#1555) --- .github/workflows/bench.yaml | 1 - .github/workflows/cli-binary.yml | 1 - .github/workflows/linux-aarch64.yaml | 1 - .github/workflows/linux-armv7.yaml | 1 - .github/workflows/msrv.yml | 5 +---- .github/workflows/test.yaml | 5 +---- .github/workflows/windows-arm.yml | 5 +---- .github/workflows/windows-i686.yml | 6 +----- .github/workflows/zig.yaml | 1 - cli/src/api/templates/ci-template.ts | 9 +-------- 10 files changed, 5 insertions(+), 30 deletions(-) diff --git a/.github/workflows/bench.yaml b/.github/workflows/bench.yaml index 6c5f9476..0d2d47fd 100644 --- a/.github/workflows/bench.yaml +++ b/.github/workflows/bench.yaml @@ -26,7 +26,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - check-latest: true cache: 'yarn' - name: Install diff --git a/.github/workflows/cli-binary.yml b/.github/workflows/cli-binary.yml index 79c2f3bf..c4e10631 100644 --- a/.github/workflows/cli-binary.yml +++ b/.github/workflows/cli-binary.yml @@ -24,7 +24,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - check-latest: true cache: 'yarn' - name: Install diff --git a/.github/workflows/linux-aarch64.yaml b/.github/workflows/linux-aarch64.yaml index 3f01f3c5..966565bb 100644 --- a/.github/workflows/linux-aarch64.yaml +++ b/.github/workflows/linux-aarch64.yaml @@ -25,7 +25,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - check-latest: true cache: 'yarn' - name: Install diff --git a/.github/workflows/linux-armv7.yaml b/.github/workflows/linux-armv7.yaml index fed78015..173b0456 100644 --- a/.github/workflows/linux-armv7.yaml +++ b/.github/workflows/linux-armv7.yaml @@ -25,7 +25,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - check-latest: true cache: 'yarn' - name: Install diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml index b161ab40..9d2b7740 100644 --- a/.github/workflows/msrv.yml +++ b/.github/workflows/msrv.yml @@ -44,10 +44,7 @@ jobs: run: yarn install --mode=skip-build --immutable - name: Check build - uses: actions-rs/cargo@v1 - with: - command: check - args: --all --bins --examples --tests -vvv + run: cargo check --all --bins --examples --tests -vvv - name: Unit tests run: | diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1b04ae79..66160187 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -52,10 +52,7 @@ jobs: run: yarn install --mode=skip-build --immutable - name: Check build - uses: actions-rs/cargo@v1 - with: - command: check - args: --all --bins --examples --tests -vvv + run: cargo check --all --bins --examples --tests -vvv - name: Unit tests run: | diff --git a/.github/workflows/windows-arm.yml b/.github/workflows/windows-arm.yml index 3dd9ec80..846dea4c 100644 --- a/.github/workflows/windows-arm.yml +++ b/.github/workflows/windows-arm.yml @@ -46,10 +46,7 @@ jobs: key: stable-windows-arm64-node@16-cargo-cache - name: Check build - uses: actions-rs/cargo@v1 - with: - command: check - args: --all --bins --examples --tests --target aarch64-pc-windows-msvc -vvv + run: cargo check --all --bins --examples --tests --target aarch64-pc-windows-msvc -vvv - name: Build release target run: | diff --git a/.github/workflows/windows-i686.yml b/.github/workflows/windows-i686.yml index d4ad4243..9e26b263 100644 --- a/.github/workflows/windows-i686.yml +++ b/.github/workflows/windows-i686.yml @@ -47,10 +47,7 @@ jobs: key: stable-windows-i686-node@18-cargo-cache - name: Check build - uses: actions-rs/cargo@v1 - with: - command: check - args: --all --bins --examples --tests --target i686-pc-windows-msvc -vvv + run: cargo check --all --bins --examples --tests --target i686-pc-windows-msvc -vvv - name: Build run: | @@ -61,7 +58,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - check-latest: true architecture: 'x86' - name: Build Tests diff --git a/.github/workflows/zig.yaml b/.github/workflows/zig.yaml index 789a8ea5..7c632e04 100644 --- a/.github/workflows/zig.yaml +++ b/.github/workflows/zig.yaml @@ -102,7 +102,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - check-latest: true cache: 'yarn' - name: Install dependencies run: yarn install --immutable --mode=skip-build diff --git a/cli/src/api/templates/ci-template.ts b/cli/src/api/templates/ci-template.ts index e7e266c4..783aa411 100644 --- a/cli/src/api/templates/ci-template.ts +++ b/cli/src/api/templates/ci-template.ts @@ -106,7 +106,6 @@ jobs: if: \${{ !matrix.settings.docker }} with: node-version: 18 - check-latest: true cache: yarn - name: Install @@ -150,7 +149,6 @@ jobs: if: matrix.settings.target == 'i686-pc-windows-msvc' with: node-version: 18 - check-latest: true cache: yarn architecture: x86 @@ -247,7 +245,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: \${{ matrix.node }} - check-latest: true cache: 'yarn' - name: 'Install dependencies' @@ -283,7 +280,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: \${{ matrix.node }} - check-latest: true cache: 'yarn' - name: 'Install dependencies' @@ -319,7 +315,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: \${{ matrix.node }} - check-latest: true cache: 'yarn' - name: 'Install dependencies' @@ -368,7 +363,7 @@ jobs: yarn config set supportedArchitectures.cpu "arm64" yarn config set supportedArchitectures.libc "glibc" yarn install - + - name: Set up QEMU uses: docker/setup-qemu-action@v2 with: @@ -483,7 +478,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - check-latest: true cache: yarn - name: 'Install dependencies' @@ -529,7 +523,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - check-latest: true cache: 'yarn' - name: 'Install dependencies'