Skip to content

Commit

Permalink
Include "runs-on" value in CI matrix cache key
Browse files Browse the repository at this point in the history
It doesn't really make sense to restore, say, Linux build artifacts for
a MacOS build.
Include the "runs-on" value in the cache key we use for the matrix to
make that happening less likely.

Signed-off-by: Daniel Müller <[email protected]>
  • Loading branch information
d-e-s-o authored and danielocfb committed Dec 19, 2023
1 parent 519d7fe commit 0f68e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.rust }}-${{ matrix.profile }}
key: ${{ matrix.runs-on }}-${{ matrix.rust }}-${{ matrix.profile }}
- name: Build ${{ matrix.profile }}
run: |
cargo build --profile=${{ matrix.profile }} ${{ matrix.args }} --lib
Expand Down

0 comments on commit 0f68e4c

Please sign in to comment.