diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 58a740c1..35cc9474 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -40,19 +40,19 @@ jobs: command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-macos-android-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-macos-android-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-macos-android-node@14-${{ hashFiles('yarn.lock') }} diff --git a/.github/workflows/bench.yaml b/.github/workflows/bench.yaml index 8f344d24..b738f3eb 100644 --- a/.github/workflows/bench.yaml +++ b/.github/workflows/bench.yaml @@ -37,19 +37,19 @@ jobs: command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: bench-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: bench-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: bench-${{ hashFiles('yarn.lock') }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index ab268aef..cb368c0b 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -34,19 +34,19 @@ jobs: command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: lint-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: lint-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: lint-${{ hashFiles('yarn.lock') }} diff --git a/.github/workflows/linux-aarch64-musl.yaml b/.github/workflows/linux-aarch64-musl.yaml index c361e9f7..f799c896 100644 --- a/.github/workflows/linux-aarch64-musl.yaml +++ b/.github/workflows/linux-aarch64-musl.yaml @@ -42,19 +42,19 @@ jobs: command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-linux-aarch64-gnu-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-linux-aarch64-gnu-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-linux-aarch64-gnu-node@14-${{ hashFiles('yarn.lock') }} diff --git a/.github/workflows/linux-aarch64.yaml b/.github/workflows/linux-aarch64.yaml index 94af14dc..57953426 100644 --- a/.github/workflows/linux-aarch64.yaml +++ b/.github/workflows/linux-aarch64.yaml @@ -42,19 +42,19 @@ jobs: command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-linux-aarch64-gnu-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-linux-aarch64-gnu-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-linux-aarch64-gnu-node@14-${{ hashFiles('yarn.lock') }} diff --git a/.github/workflows/linux-armv7.yaml b/.github/workflows/linux-armv7.yaml index 3f5098d9..06eb10ad 100644 --- a/.github/workflows/linux-armv7.yaml +++ b/.github/workflows/linux-armv7.yaml @@ -42,19 +42,19 @@ jobs: command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-linux-armv7-gnu-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-linux-armv7-gnu-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-linux-armv7-gnu-node@14-${{ hashFiles('yarn.lock') }} diff --git a/.github/workflows/linux-musl.yaml b/.github/workflows/linux-musl.yaml index 7d566644..0ada20e7 100644 --- a/.github/workflows/linux-musl.yaml +++ b/.github/workflows/linux-musl.yaml @@ -18,13 +18,13 @@ jobs: - uses: actions/checkout@v2 - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-alpine-node-alpine-@lts-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-alpine-node-alpine-@lts-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} diff --git a/.github/workflows/memory-test.yml b/.github/workflows/memory-test.yml index 192ea021..5a7130e4 100644 --- a/.github/workflows/memory-test.yml +++ b/.github/workflows/memory-test.yml @@ -36,25 +36,25 @@ jobs: command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + 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@v1 + 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@v1 + uses: actions/cache@v2 with: path: target key: stable-memory-leak-detect-cargo-build-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: memory-leak-detect-${{ hashFiles('yarn.lock') }} diff --git a/.github/workflows/napi3.yaml b/.github/workflows/napi3.yaml index 62ff478b..7c0a6ad2 100644 --- a/.github/workflows/napi3.yaml +++ b/.github/workflows/napi3.yaml @@ -35,23 +35,23 @@ jobs: with: command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-napi3-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-napi3-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo build - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: target key: stable-napi3-cargo-build-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: napi3-${{ hashFiles('yarn.lock') }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index df309f39..43346444 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -42,19 +42,19 @@ jobs: command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-${{ matrix.os }}-node@${{ matrix.node }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-${{ matrix.os }}gnu-node@${{ matrix.node }}-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-${{ matrix.os }}-node@${{ matrix.node }}-${{ hashFiles('yarn.lock') }} diff --git a/.github/workflows/windows-arm.yml b/.github/workflows/windows-arm.yml index 4788e255..8d439b20 100644 --- a/.github/workflows/windows-arm.yml +++ b/.github/workflows/windows-arm.yml @@ -23,7 +23,7 @@ jobs: node-version: 14 - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-windows-arm64-node@lts-${{ hashFiles('yarn.lock') }} @@ -50,13 +50,13 @@ jobs: command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-windows-arm64-node@lts-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-windows-arm64-node@lts-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} diff --git a/.github/workflows/windows-i686.yml b/.github/workflows/windows-i686.yml index edae86ce..f383269b 100644 --- a/.github/workflows/windows-i686.yml +++ b/.github/workflows/windows-i686.yml @@ -26,7 +26,7 @@ jobs: shell: bash - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-windows-i686-node@lts-${{ hashFiles('yarn.lock') }} @@ -53,13 +53,13 @@ jobs: command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-windows-i686-node@lts-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-windows-i686-node@lts-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} diff --git a/cli/src/new/ci-yml.ts b/cli/src/new/ci-yml.ts index aeffe3be..5d18eaf9 100644 --- a/cli/src/new/ci-yml.ts +++ b/cli/src/new/ci-yml.ts @@ -94,19 +94,19 @@ export const createGithubActionsCIYml = ( command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-\${{ matrix.os }}-node@${LATEST_LTS_NODE}-cargo-registry-trimmed-\${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-\${{ matrix.os }}-node@${LATEST_LTS_NODE}-cargo-index-trimmed-\${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-\${{ matrix.os }}-node@${LATEST_LTS_NODE}-\${{ hashFiles('yarn.lock') }} @@ -159,19 +159,19 @@ export const createGithubActionsCIYml = ( command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-node-alpine-@${OLDEST_LTS_NODE}-cargo-registry-trimmed-\${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-node-alpine-@${OLDEST_LTS_NODE}-cargo-index-trimmed-\${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-alpine-node@${OLDEST_LTS_NODE}-\${{ hashFiles('yarn.lock') }} @@ -218,19 +218,19 @@ export const createGithubActionsCIYml = ( command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-linux-arm7-gnu-node@${LATEST_LTS_NODE}-cargo-registry-trimmed-\${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-linux-arm7-gnu-node@${LATEST_LTS_NODE}-cargo-index-trimmed-\${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-linux-arm7-gnu-node@${LATEST_LTS_NODE}-\${{ hashFiles('yarn.lock') }} @@ -288,19 +288,19 @@ export const createGithubActionsCIYml = ( command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: stable-linux-aarch64-gnu-node@${LATEST_LTS_NODE}-cargo-registry-trimmed-\${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: stable-linux-aarch64-gnu-node@${LATEST_LTS_NODE}-cargo-index-trimmed-\${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-linux-aarch64-gnu-node@${LATEST_LTS_NODE}-\${{ hashFiles('yarn.lock') }} @@ -353,19 +353,19 @@ export const createGithubActionsCIYml = ( command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: nightly-apple-aarch64-node@${LATEST_LTS_NODE}-cargo-registry-trimmed-\${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: nightly-apple-aarch64-node@${LATEST_LTS_NODE}-cargo-index-trimmed-\${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-apple-aarch64-node@${LATEST_LTS_NODE}-\${{ hashFiles('yarn.lock') }} @@ -404,19 +404,19 @@ export const createGithubActionsCIYml = ( command: generate-lockfile - name: Cache cargo registry - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/registry key: nightly-apple-aarch64-node@${LATEST_LTS_NODE}-cargo-registry-trimmed-\${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cargo/git key: nightly-apple-aarch64-node@${LATEST_LTS_NODE}-cargo-index-trimmed-\${{ hashFiles('**/Cargo.lock') }} - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-apple-aarch64-node@${LATEST_LTS_NODE}-\${{ hashFiles('yarn.lock') }} @@ -459,7 +459,7 @@ export const createGithubActionsCIYml = ( check-latest: true - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-test-\${{ matrix.os }}-node@\${{ matrix.node }}-\${{ hashFiles('yarn.lock') }} @@ -496,7 +496,7 @@ export const createGithubActionsCIYml = ( - uses: actions/checkout@v2 - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-alpine-node@\${{ matrix.node }}-\${{ hashFiles('yarn.lock') }} @@ -542,7 +542,7 @@ export const createGithubActionsCIYml = ( check-latest: true - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-test-linux-aarch64-gnu-node@\${{ matrix.node }}-\${{ hashFiles('yarn.lock') }} @@ -627,7 +627,7 @@ ${requiredSteps.map((s) => ` - ${s}`).join('\n')} check-latest: true - name: Cache NPM dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: npm-cache-publish-ubuntu-latest-\${{ hashFiles('yarn.lock') }}