mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-24 15:21:33 +00:00
ci(caching): split caches by matrix variables (#3257)
Previously, some of the caches for these job runs were overlapping. By incorporating the relevant matrix variables into the cache key, every instance of this job gets its own cache.
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -116,6 +116,7 @@ jobs:
|
||||
|
||||
- uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
|
||||
with:
|
||||
key: ${{ matrix.target }}
|
||||
save-if: ${{ github.ref == 'refs/heads/master' }}
|
||||
|
||||
- run: cargo check --package libp2p --all-features --target=${{ matrix.target }}
|
||||
@ -144,6 +145,7 @@ jobs:
|
||||
|
||||
- uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
|
||||
with:
|
||||
key: ${{ matrix.features }}
|
||||
save-if: ${{ github.ref == 'refs/heads/master' }}
|
||||
|
||||
- run: cargo check --package libp2p --features="${{ matrix.features }}"
|
||||
|
Reference in New Issue
Block a user