File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 37
37
38
38
# restore cargo cache from previous runs
39
39
- name : Rust Cache
40
- uses : Swatinem/rust-cache@v2.0.0
40
+ uses : Swatinem/rust-cache@v2
41
+ with :
42
+ # The cache should not be shared between different workflows and jobs.
43
+ shared-key : ${{ github.workflow }}-${{ github.job }}
41
44
42
45
# # Benchmarks
43
46
- name : install valgrind for benchmarks
Original file line number Diff line number Diff line change 39
39
- name : Rust Cache
40
40
uses : Swatinem/rust-cache@v2
41
41
with :
42
- # Distinguished by the action name to avoid sharing!
43
- shared-key : " rust "
42
+ # The cache should not be shared between different workflows and jobs.
43
+ shared-key : ${{ github.workflow }}-${{ github.job }}
44
44
45
45
# check it builds
46
46
- name : Build
Original file line number Diff line number Diff line change 36
36
- name : Cache Rust toolchain and build artifacts
37
37
uses : Swatinem/rust-cache@v2
38
38
with :
39
- # Distinguished by the action name to avoid sharing!
40
- shared-key : " msrv "
39
+ # The cache should not be shared between different workflows and jobs.
40
+ shared-key : ${{ github.workflow }}-${{ github.job }}
41
41
42
42
- name : Check workspace
43
43
run : cargo check --locked --workspace --verbose --all-targets --all-features
Original file line number Diff line number Diff line change 44
44
- name : Cache Rust toolchain and build artifacts
45
45
uses : Swatinem/rust-cache@v2
46
46
with :
47
- # Distinguished by the action name to avoid sharing across different actions!
48
- shared-key : " pre-commit "
47
+ # The cache should not be shared between different workflows and jobs.
48
+ shared-key : ${{ github.workflow }}-${{ github.job }}
49
49
50
50
- name : Detect code style issues (push)
51
51
uses : pre-commit/action@v3.0.0
You can’t perform that action at this time.
0 commit comments