From ff03e71215182784b5abb0101fff217bd20fb387 Mon Sep 17 00:00:00 2001 From: Jonathan Daniel Date: Tue, 23 Jul 2024 20:36:27 +0300 Subject: [PATCH] Save the cache per language --- .github/workflows/setup-rust-cache/action.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/setup-rust-cache/action.yml b/.github/workflows/setup-rust-cache/action.yml index 27ad81d6..1bfde298 100644 --- a/.github/workflows/setup-rust-cache/action.yml +++ b/.github/workflows/setup-rust-cache/action.yml @@ -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 }}