1
0
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:
Jonathan Daniel
2024-07-23 20:36:27 +03:00
parent fcb7d39414
commit ff03e71215

View File

@ -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 }}