From 183c2d88966324056005729a2428d211a8778cf7 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 1 Apr 2022 14:29:51 +0800 Subject: [PATCH] ci: upgrade configuration --- .cirrus.yml | 2 +- .github/workflows/android-armv7.yml | 31 ++++++---------- .github/workflows/android.yml | 31 ++++++---------- .github/workflows/asan.yml | 43 ++++++++--------------- .github/workflows/bench.yaml | 31 ++++++---------- .github/workflows/cli-binary.yml | 4 +-- .github/workflows/docker.yaml | 4 +-- .github/workflows/lint.yaml | 31 ++++++---------- .github/workflows/linux-aarch64-musl.yaml | 20 +++-------- .github/workflows/linux-aarch64.yaml | 31 ++++++---------- .github/workflows/linux-armv7.yaml | 6 ++-- .github/workflows/linux-musl.yaml | 4 +-- .github/workflows/memory-test.yml | 38 +++++++------------- .github/workflows/test.yaml | 27 +++++++------- .github/workflows/windows-arm.yml | 31 +++++++--------- .github/workflows/windows-i686.yml | 14 +++++--- .github/workflows/zig.yaml | 24 ++++++------- cli/src/new/ci-template.ts | 2 +- 18 files changed, 144 insertions(+), 230 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 073a0353..13bfe9a9 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -25,7 +25,7 @@ task: echo "~~~~ yarn --version ~~~~" yarn --version test_script: - - yarn install --immutable --network-timeout 300000 + - yarn install --immutable --mode=skip-build - yarn build - cargo test -p napi-sys --lib -- --nocapture - yarn build:test diff --git a/.github/workflows/android-armv7.yml b/.github/workflows/android-armv7.yml index 2c427ae3..82c64319 100644 --- a/.github/workflows/android-armv7.yml +++ b/.github/workflows/android-armv7.yml @@ -14,7 +14,7 @@ jobs: name: Build - Android - armv7 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 @@ -34,31 +34,22 @@ jobs: override: true target: 'armv7-linux-androideabi' - - name: Generate Cargo.lock - uses: actions-rs/cargo@v1 + - name: Cache cargo + uses: actions/cache@v3 with: - command: generate-lockfile - - - name: Cache cargo registry - uses: actions/cache@v2 - with: - path: ~/.cargo/registry - key: stable-linux-android-armv7-node@16-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache cargo index - uses: actions/cache@v2 - with: - path: ~/.cargo/git - key: stable-linux-android-node@16-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} + path: | + ~/.cargo/registry + ~/.cargo/git + key: stable-linux-android-armv7-node@16-cargo-cache - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: node_modules - key: npm-cache-linux-android-node@16-${{ hashFiles('yarn.lock') }} + path: .yarn/cache + key: npm-cache-linux-android-node@16 - name: Install dependencies - run: yarn install --immutable --network-timeout 300000 + run: yarn install --immutable --mode=skip-build - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 4c6eea92..73c817c4 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -14,7 +14,7 @@ jobs: name: Build - Android - aarch64 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 @@ -34,31 +34,22 @@ jobs: override: true target: 'aarch64-linux-android' - - name: Generate Cargo.lock - uses: actions-rs/cargo@v1 + - name: Cache cargo + uses: actions/cache@v3 with: - command: generate-lockfile - - - name: Cache cargo registry - uses: actions/cache@v2 - with: - path: ~/.cargo/registry - key: stable-linux-android-node@16-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache cargo index - uses: actions/cache@v2 - with: - path: ~/.cargo/git - key: stable-linux-android-node@16-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} + path: | + ~/.cargo/registry + ~/.cargo/git + key: stable-linux-android-node@16-cargo-cache - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: node_modules - key: npm-cache-linux-android-node@16-${{ hashFiles('yarn.lock') }} + path: .yarn/cache + key: npm-cache-linux-android-node@16 - name: Install dependencies - run: yarn install --immutable --network-timeout 300000 + run: yarn install --immutable --mode=skip-build - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/asan.yml b/.github/workflows/asan.yml index 46b9a40a..0935c6c0 100644 --- a/.github/workflows/asan.yml +++ b/.github/workflows/asan.yml @@ -11,22 +11,16 @@ on: jobs: build_and_test: - strategy: - fail-fast: false - matrix: - node: ['17'] - os: [ubuntu-latest] - - name: nightly - ${{ matrix.os }} - node@${{ matrix.node }} - runs-on: ${{ matrix.os }} + name: nightly - ubuntu - node@16 + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node }} + node-version: 16 check-latest: true cache: 'yarn' @@ -38,31 +32,22 @@ jobs: components: rust-src override: true - - name: Generate Cargo.lock - uses: actions-rs/cargo@v1 + - name: Cache cargo + uses: actions/cache@v3 with: - command: generate-lockfile - - - name: Cache cargo registry - uses: actions/cache@v2 - with: - path: ~/.cargo/registry - key: nightly-${{ matrix.os }}-node@${{ matrix.node }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache cargo index - uses: actions/cache@v2 - with: - path: ~/.cargo/git - key: nightly-${{ matrix.os }}gnu-node@${{ matrix.node }}-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} + path: | + ~/.cargo/registry + ~/.cargo/git + key: nightly-ubuntu-node@16-cargo-cache - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: node_modules - key: npm-cache-${{ matrix.os }}-node@${{ matrix.node }}-${{ hashFiles('yarn.lock') }} + path: .yarn/cache + key: npm-cache-ubuntu-node@16 - name: 'Install dependencies' - run: yarn install --immutable --network-timeout 300000 + run: yarn install --immutable --mode=skip-build - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/bench.yaml b/.github/workflows/bench.yaml index 840d2ba5..757baaaa 100644 --- a/.github/workflows/bench.yaml +++ b/.github/workflows/bench.yaml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 @@ -32,31 +32,22 @@ jobs: profile: default override: true - - name: Generate Cargo.lock - uses: actions-rs/cargo@v1 + - name: Cache cargo + uses: actions/cache@v3 with: - command: generate-lockfile - - - name: Cache cargo registry - uses: actions/cache@v2 - with: - path: ~/.cargo/registry - key: bench-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache cargo index - uses: actions/cache@v2 - with: - path: ~/.cargo/git - key: bench-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} + path: | + ~/.cargo/registry + ~/.cargo/git + key: bench-cargo-cache - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: node_modules - key: bench-${{ hashFiles('yarn.lock') }} + path: .yarn/cache + key: bench-yarn-cache - name: 'Install dependencies' - run: yarn install --immutable --network-timeout 300000 + run: yarn install --immutable --mode=skip-build - name: 'Build ts' run: yarn build diff --git a/.github/workflows/cli-binary.yml b/.github/workflows/cli-binary.yml index b7c3dd00..29625465 100644 --- a/.github/workflows/cli-binary.yml +++ b/.github/workflows/cli-binary.yml @@ -30,7 +30,7 @@ jobs: profile: minimal override: true - - name: Cache cargo registry + - name: Cache cargo uses: actions/cache@v3 with: path: | @@ -39,7 +39,7 @@ jobs: key: stable-cargo-cache-build-binary - name: 'Install dependencies' - run: yarn install --mode=skip-build --immutable --network-timeout 300000 + run: yarn install --mode=skip-build --immutable - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 9a21d84e..6fdf2d10 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup QEMU uses: docker/setup-qemu-action@v1 @@ -65,7 +65,7 @@ jobs: version: ['12', '14', '16', '17'] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup QEMU uses: docker/setup-qemu-action@v1 diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 548216a0..8adc3bec 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 @@ -29,31 +29,22 @@ jobs: override: true components: rustfmt, clippy - - name: Generate Cargo.lock - uses: actions-rs/cargo@v1 + - name: Cache cargo + uses: actions/cache@v3 with: - command: generate-lockfile - - - name: Cache cargo registry - uses: actions/cache@v2 - with: - path: ~/.cargo/registry - key: lint-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache cargo index - uses: actions/cache@v2 - with: - path: ~/.cargo/git - key: lint-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} + path: | + ~/.cargo/registry + ~/.cargo/git + key: lint-cargo-cache - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: node_modules - key: lint-${{ hashFiles('yarn.lock') }} + path: .yarn/cache + key: lint-yarn-cache - name: 'Install dependencies' - run: yarn install --immutable --network-timeout 300000 + run: yarn install --immutable --mode=skip-build - name: 'Lint JS/TS' run: yarn lint diff --git a/.github/workflows/linux-aarch64-musl.yaml b/.github/workflows/linux-aarch64-musl.yaml index 73e35281..82823a0c 100644 --- a/.github/workflows/linux-aarch64-musl.yaml +++ b/.github/workflows/linux-aarch64-musl.yaml @@ -17,7 +17,7 @@ jobs: steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 @@ -26,24 +26,14 @@ jobs: check-latest: true cache: 'yarn' - - name: Install - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - - - name: Install aarch64 toolchain - run: rustup target add aarch64-unknown-linux-gnu - - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: node_modules - key: npm-cache-linux-aarch64-gnu-node@16-${{ hashFiles('yarn.lock') }} + path: .yarn/cache + key: npm-cache-linux-aarch64-gnu-node@16 - name: Install dependencies - run: yarn install --immutable --network-timeout 300000 + run: yarn install --immutable --mode=skip-build - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/linux-aarch64.yaml b/.github/workflows/linux-aarch64.yaml index 0dce5cc1..7c2fd0e7 100644 --- a/.github/workflows/linux-aarch64.yaml +++ b/.github/workflows/linux-aarch64.yaml @@ -18,7 +18,7 @@ jobs: steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 @@ -37,28 +37,19 @@ jobs: - name: Install aarch64 toolchain run: rustup target add aarch64-unknown-linux-gnu - - name: Generate Cargo.lock - uses: actions-rs/cargo@v1 + - name: Cache cargo + uses: actions/cache@v3 with: - command: generate-lockfile - - - name: Cache cargo registry - uses: actions/cache@v2 - with: - path: ~/.cargo/registry - key: stable-linux-aarch64-gnu-node@16-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache cargo index - uses: actions/cache@v2 - with: - path: ~/.cargo/git - key: stable-linux-aarch64-gnu-node@16-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} + path: | + ~/.cargo/registry + ~/.cargo/git + key: stable-linux-aarch64-gnu-node@16-cargo-cache - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: node_modules - key: npm-cache-linux-aarch64-gnu-node@16-${{ hashFiles('yarn.lock') }} + path: .yarn/cache + key: npm-cache-linux-aarch64-gnu-node@16 - name: Install cross compile toolchain run: | @@ -66,7 +57,7 @@ jobs: sudo apt-get install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu -y - name: Install dependencies - run: yarn install --immutable --network-timeout 300000 + run: yarn install --immutable --mode=skip-build - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/linux-armv7.yaml b/.github/workflows/linux-armv7.yaml index ec720cf8..69f3f66b 100644 --- a/.github/workflows/linux-armv7.yaml +++ b/.github/workflows/linux-armv7.yaml @@ -18,7 +18,7 @@ jobs: steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 @@ -42,7 +42,7 @@ jobs: with: command: generate-lockfile - - name: Cache cargo registry + - name: Cache cargo uses: actions/cache@v2 with: path: ~/.cargo/registry @@ -66,7 +66,7 @@ jobs: sudo apt-get install gcc-arm-linux-gnueabihf -y - name: Install dependencies - run: yarn install --immutable --network-timeout 300000 + run: yarn install --immutable --mode=skip-build - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/linux-musl.yaml b/.github/workflows/linux-musl.yaml index 184543e3..ef9af07b 100644 --- a/.github/workflows/linux-musl.yaml +++ b/.github/workflows/linux-musl.yaml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 @@ -25,7 +25,7 @@ jobs: cache: 'yarn' - name: 'Install dependencies' - run: yarn install --immutable --network-timeout 300000 + run: yarn install --immutable --mode=skip-build - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/memory-test.yml b/.github/workflows/memory-test.yml index fc96e010..da193868 100644 --- a/.github/workflows/memory-test.yml +++ b/.github/workflows/memory-test.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 @@ -31,37 +31,23 @@ jobs: profile: minimal override: true - - name: Generate Cargo.lock - uses: actions-rs/cargo@v1 + - name: Cache cargo + uses: actions/cache@v3 with: - command: generate-lockfile - - - name: Cache cargo registry - uses: actions/cache@v2 - with: - path: ~/.cargo/registry - key: stable-memory-leak-detect-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache cargo index - uses: actions/cache@v2 - with: - path: ~/.cargo/git - key: stable-memory-leak-detect-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache cargo build - uses: actions/cache@v2 - with: - path: target - key: stable-memory-leak-detect-cargo-build-trimmed-${{ hashFiles('**/Cargo.lock') }} + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: stable-memory-leak-detect-cargo-cache - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: node_modules - key: memory-leak-detect-${{ hashFiles('yarn.lock') }} + path: .yarn/cache + key: memory-leak-detect - name: 'Install dependencies' - run: yarn install --immutable --network-timeout 300000 + run: yarn install --immutable - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c4740091..dfed32cc 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 @@ -37,25 +37,22 @@ jobs: profile: minimal override: true - - name: Generate Cargo.lock - uses: actions-rs/cargo@v1 + - name: Cache cargo + uses: actions/cache@v3 with: - command: generate-lockfile + path: | + ~/.cargo/registry + ~/.cargo/git + key: stable-${{ matrix.os }}-node@${{ matrix.node }}-cargo-cache - - name: Cache cargo registry - uses: actions/cache@v2 + - name: Cache NPM dependencies + uses: actions/cache@v3 with: - path: ~/.cargo/registry - key: stable-${{ matrix.os }}-node@${{ matrix.node }}-cargo-registry - - - name: Cache cargo index - uses: actions/cache@v2 - with: - path: ~/.cargo/git - key: stable-${{ matrix.os }}-node@${{ matrix.node }}-cargo-index + path: .yarn/cache + key: npm-cache-${{ matrix.os }}-node@${{ matrix.node }} - name: 'Install dependencies' - run: yarn install --mode=skip-build --immutable --network-timeout 300000 + run: yarn install --mode=skip-build --immutable - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/windows-arm.yml b/.github/workflows/windows-arm.yml index 56753909..e7167d84 100644 --- a/.github/workflows/windows-arm.yml +++ b/.github/workflows/windows-arm.yml @@ -15,7 +15,7 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 @@ -25,7 +25,7 @@ jobs: cache: 'yarn' - name: 'Install dependencies' - run: yarn install --mode=skip-build --immutable --network-timeout 300000 + run: yarn install --mode=skip-build --immutable - name: 'Build TypeScript' run: yarn build @@ -36,26 +36,21 @@ jobs: toolchain: stable profile: minimal override: true + target: aarch64-pc-windows-msvc - - name: Install arm64 toolchain - run: rustup target add aarch64-pc-windows-msvc - - - name: Generate Cargo.lock - uses: actions-rs/cargo@v1 + - name: Cache NPM dependencies + uses: actions/cache@v3 with: - command: generate-lockfile + path: .yarn/cache + key: npm-cache-windows-aarch64-msvc-node@16 - - name: Cache cargo registry - uses: actions/cache@v2 + - name: Cache cargo + uses: actions/cache@v3 with: - path: ~/.cargo/registry - key: stable-windows-arm64-node@lts-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache cargo index - uses: actions/cache@v2 - with: - path: ~/.cargo/git - key: stable-windows-arm64-node@lts-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} + path: | + ~/.cargo/registry + ~/.cargo/git + key: stable-windows-arm64-node@16-cargo-cache - name: Check build uses: actions-rs/cargo@v1 diff --git a/.github/workflows/windows-i686.yml b/.github/workflows/windows-i686.yml index fdbb53f1..6eeb456e 100644 --- a/.github/workflows/windows-i686.yml +++ b/.github/workflows/windows-i686.yml @@ -15,7 +15,7 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 @@ -25,6 +25,12 @@ jobs: architecture: 'x64' cache: 'yarn' + - name: Cache NPM dependencies + uses: actions/cache@v3 + with: + path: .yarn/cache + key: npm-cache-windows-i686-msvc-node@16 + - name: 'Install dependencies' run: | yarn install --mode=skip-build --immutable @@ -40,14 +46,14 @@ jobs: override: true target: i686-pc-windows-msvc - - name: Cache cargo registry - uses: actions/cache@v2 + - name: Cache cargo + uses: actions/cache@v3 with: path: ~/.cargo/registry key: stable-windows-i686-node@lts-cargo-registry - name: Cache cargo index - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.cargo/git key: stable-windows-i686-node@lts-cargo-index diff --git a/.github/workflows/zig.yaml b/.github/workflows/zig.yaml index 3e8911c4..229c74af 100644 --- a/.github/workflows/zig.yaml +++ b/.github/workflows/zig.yaml @@ -25,7 +25,7 @@ jobs: steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 with: @@ -47,12 +47,12 @@ jobs: with: version: 0.9.1 - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: node_modules - key: npm-cache-linux-aarch64-gnu-node@16-${{ hashFiles('yarn.lock') }} + path: .yarn/cache + key: npm-cache-linux-aarch64-gnu-node@16 - name: Install dependencies - run: yarn install --immutable --network-timeout 300000 + run: yarn install --immutable --mode=skip-build - name: 'Build TypeScript' run: yarn build - name: Cross build native tests @@ -91,7 +91,7 @@ jobs: steps: - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset if: matrix.settings.host == 'ubuntu-latest' - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 with: @@ -99,19 +99,19 @@ jobs: check-latest: true cache: 'yarn' - name: Cache NPM dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: node_modules - key: npm-cache-${{ matrix.settings.host }}-node@16-${{ hashFiles('yarn.lock') }} + path: .yarn/cache + key: npm-cache-${{ matrix.settings.host }}-node@16 - name: Install dependencies - run: yarn install --immutable --network-timeout 300000 + run: yarn install --immutable --mode=skip-build - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: napi-${{ matrix.settings.target }} path: ./examples/napi/ - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: compat-${{ matrix.settings.target }} path: ./examples/napi-compat-mode/ diff --git a/cli/src/new/ci-template.ts b/cli/src/new/ci-template.ts index c66b4999..44622e94 100644 --- a/cli/src/new/ci-template.ts +++ b/cli/src/new/ci-template.ts @@ -150,7 +150,7 @@ jobs: with: command: generate-lockfile - - name: Cache cargo registry + - name: Cache cargo uses: actions/cache@v2 with: path: ~/.cargo/registry