diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1dec361..d19c66d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,6 +87,8 @@ jobs: - name: Enable Rust cache uses: Swatinem/rust-cache@22c9328bcba27aa81a32b1bef27c7e3c78052531 # 2.0.1 if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork + with: + key: ${{ matrix.info.target }} - name: Check cargo fmt run: cargo fmt --all -- --check @@ -228,6 +230,8 @@ jobs: - name: Enable Rust cache uses: Swatinem/rust-cache@22c9328bcba27aa81a32b1bef27c7e3c78052531 # 2.0.1 if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork + with: + key: ${{ matrix.info.target }} - name: Check uses: ClementTsang/cargo-action@v0.0.3