Skip to content

Commit

Permalink
GitHub CI: Fix cache keys for multi-target builds
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Jul 31, 2023
1 parent 2800363 commit 8bdb564
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
# The cache should not be shared between different workflows and jobs.
shared-key: ${{ github.workflow }}-${{ github.job }}
# Two jobs might share the same default target but have different build targets.
key: ${{ matrix.target }}
shared-key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.target }}

- name: Build tests with all features enabled
run: >-
Expand Down

0 comments on commit 8bdb564

Please sign in to comment.