You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-07 15:02:22 +02:00
Save the cache per language
This commit is contained in:
@ -9,6 +9,7 @@ runs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
# Only save the cache on the main branch to avoid PRs filling
|
||||
# up the cache. Further, only save it if we are working on the
|
||||
# English source (or if no language has been set).
|
||||
save-if: ${{ github.ref == 'refs/heads/main' && (matrix.language == 'en' || matrix.language == '') }}
|
||||
# up the cache.
|
||||
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||
# Further, save the cache per language.
|
||||
key: ${{ matrix.language }}
|
||||
|
Reference in New Issue
Block a user