diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fecae2c8..8ddae674 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -132,6 +132,8 @@ jobs: - name: Setup Rust cache uses: ./.github/workflows/setup-rust-cache + with: + key: ${{ contains(fromJSON(env.LINK_CHECKED_LANGUAGES), matrix.language) }} - name: Install Gettext run: | diff --git a/.github/workflows/setup-rust-cache/action.yml b/.github/workflows/setup-rust-cache/action.yml index 1bfde298..ff123aaa 100644 --- a/.github/workflows/setup-rust-cache/action.yml +++ b/.github/workflows/setup-rust-cache/action.yml @@ -2,6 +2,12 @@ name: Setup Rust cache description: Configure the rust-cache workflow. +inputs: + key: + description: Additional caching key + required: false + default: + runs: using: composite steps: @@ -11,5 +17,5 @@ runs: # Only save the cache on the main branch to avoid PRs filling # up the cache. save-if: ${{ github.ref == 'refs/heads/main' }} - # Further, save the cache per language. - key: ${{ matrix.language }} + # Further, save the cache per key - e.g. language grouping. + key: ${{ inputs.key }}