Skip to content

Commit

Permalink
Improve cache key for std checks (tracel-ai#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 authored Sep 26, 2023
1 parent 95e6604 commit 6458000
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
matrix:
rust: [stable, 1.71.0]
test: ['std', 'no-std']
include:
- cache: stable
rust: stable
- cache: 1-71-0
rust: 1.71.0

steps:

- name: checkout
Expand All @@ -32,7 +38,7 @@ jobs:
- name: caching
uses: Swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-${{ matrix.rust }}-${{ matrix.test}}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-${{ matrix.cache }}-${{ matrix.test}}-${{ hashFiles('**/Cargo.toml') }}
prefix-key: "v5-rust"

- name: free disk space
Expand Down

0 comments on commit 6458000

Please sign in to comment.