diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index f8abed21053..f80428a277d 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -32,6 +32,8 @@ jobs: components: clippy - uses: Swatinem/rust-cache@v2 + with: + key: profile-${{ matrix.profile }} - name: Lint feature soundness if: matrix.profile == 'dev' @@ -73,6 +75,8 @@ jobs: components: clippy - uses: Swatinem/rust-cache@v2 + with: + key: toolchain-${{ matrix.toolchain }} - name: Run clippy run: | diff --git a/.github/workflows/main-checks.yml b/.github/workflows/main-checks.yml index e0bb2ba7e81..7c47dd10ab7 100644 --- a/.github/workflows/main-checks.yml +++ b/.github/workflows/main-checks.yml @@ -74,6 +74,8 @@ jobs: - uses: actions/checkout@v4 - uses: Swatinem/rust-cache@v2 + with: + key: toolchain-${{ matrix.toolchain }} # for wasm-bindgen-cli, always use stable rust - name: Setup toolchain @@ -131,6 +133,8 @@ jobs: toolchain: ${{ matrix.toolchain }} - uses: Swatinem/rust-cache@v2 + with: + key: toolchain-${{ matrix.toolchain }} - name: Run native tests env: @@ -159,6 +163,8 @@ jobs: toolchain: nightly - uses: Swatinem/rust-cache@v2 + with: + key: toolchain-${{ matrix.toolchain }} - name: Run tests env: diff --git a/.github/workflows/size-cmp.yml b/.github/workflows/size-cmp.yml index 066dbb287c0..11b32aa7b33 100644 --- a/.github/workflows/size-cmp.yml +++ b/.github/workflows/size-cmp.yml @@ -46,6 +46,8 @@ jobs: - name: Restore Rust cache for master uses: Swatinem/rust-cache@v2 + with: + key: target-${{ matrix.target }} - name: Setup Trunk uses: jetli/trunk-action@v0.4.0