From 859969e947d02108d933e1ec0c2e716ce0e918e6 Mon Sep 17 00:00:00 2001 From: Jackson Ming Hu Date: Wed, 16 Oct 2024 22:19:02 +1100 Subject: [PATCH] Fix CI --- .github/workflows/CI.yml | 84 ++++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 398e027..d32e934 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -110,14 +110,14 @@ jobs: architecture: x64 target: aarch64-pc-windows-msvc build: yarn build --target aarch64-pc-windows-msvc - name: stable - ${{ matrix.settings.target }} - node@16 + name: stable - ${{ matrix.settings.target }} - node@22 runs-on: ${{ matrix.settings.host }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 22 check-latest: true cache: yarn architecture: ${{ matrix.settings.architecture }} @@ -133,20 +133,20 @@ jobs: with: command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.cargo/registry - key: ${{ matrix.settings.target }}-node@16-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} + key: ${{ matrix.settings.target }}-node@22-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.cargo/git - key: ${{ matrix.settings.target }}-node@16-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} + key: ${{ matrix.settings.target }}-node@22-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules - key: npm-cache-${{ matrix.settings.target }}-node@16-${{ hashFiles('yarn.lock') }} + key: npm-cache-${{ matrix.settings.target }}-node@22-${{ hashFiles('yarn.lock') }} - name: Pull latest image run: ${{ matrix.settings.docker }} env: @@ -162,7 +162,7 @@ jobs: run: ${{ matrix.settings.build }} shell: bash - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: bindings-${{ matrix.settings.target }} path: ${{ env.APP_NAME }}.*.node @@ -171,7 +171,7 @@ jobs: runs-on: macos-10.15 name: Build FreeBSD steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build id: build uses: vmactions/freebsd-vm@v0.1.5 @@ -227,26 +227,26 @@ jobs: - host: windows-latest target: x86_64-pc-windows-msvc node: - - '14' - - '16' + - '20' + - '22' runs-on: ${{ matrix.settings.host }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} check-latest: true cache: yarn - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: npm-cache-test-${{ matrix.settings.target }}-${{ matrix.node }}-${{ hashFiles('yarn.lock') }} - name: Install dependencies run: yarn install --ignore-scripts --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: bindings-${{ matrix.settings.target }} path: . @@ -263,26 +263,26 @@ jobs: fail-fast: false matrix: node: - - '14' - - '16' + - '20' + - '22' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} check-latest: true cache: yarn - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: npm-cache-test-x86_64-unknown-linux-musl-${{ matrix.node }}-${{ hashFiles('yarn.lock') }} - name: Install dependencies run: yarn install --ignore-scripts --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: bindings-x86_64-unknown-linux-musl path: . @@ -299,14 +299,14 @@ jobs: fail-fast: false matrix: node: - - '14' - - '16' + - '20' + - '22' runs-on: ubuntu-latest steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: bindings-aarch64-unknown-linux-gnu path: . @@ -314,7 +314,7 @@ jobs: run: ls -R . shell: bash - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: npm-cache-test-linux-aarch64-gnu-${{ matrix.node }}-${{ hashFiles('yarn.lock') }} @@ -336,9 +336,9 @@ jobs: runs-on: ubuntu-latest steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: bindings-aarch64-unknown-linux-musl path: . @@ -346,7 +346,7 @@ jobs: run: ls -R . shell: bash - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: npm-cache-test-linux-aarch64-musl-${{ matrix.node }}-${{ hashFiles('yarn.lock') }} @@ -369,14 +369,14 @@ jobs: fail-fast: false matrix: node: - - '14' - - '16' + - '20' + - '22' runs-on: ubuntu-latest steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: bindings-armv7-unknown-linux-gnueabihf path: . @@ -384,7 +384,7 @@ jobs: run: ls -R . shell: bash - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: npm-cache-test-linux-arm-gnueabihf-${{ matrix.node }}-${{ hashFiles('yarn.lock') }} @@ -411,15 +411,15 @@ jobs: - test-linux-aarch64-musl-binding - test-linux-arm-gnueabihf-binding steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 22 check-latest: true cache: yarn - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: npm-cache-ubuntu-latest-${{ hashFiles('yarn.lock') }} @@ -428,7 +428,7 @@ jobs: - name: Install dependencies run: yarn install --ignore-scripts --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 - name: Download all artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: path: artifacts - name: Move artifacts