File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 32
32
- name : " Configure"
33
33
id : configure
34
34
run : |
35
+ echo "Rust cache shared-key: '${{ runner.os }}-${{ inputs.rust }}${{ inputs.cache-key }}'"
35
36
echo "components=$( for c in ${cs//,/ }; do echo -n ' --component' $c; done )" >> $GITHUB_OUTPUT
36
37
env :
37
38
cs : ${{ inputs.components }}
46
47
- name : " Reuse cached dependencies"
47
48
uses : Swatinem/rust-cache@v2
48
49
with :
49
- shared-key : ${{ inputs.cache-key }}
50
+ # A cache key that is used instead of the automatic `job`-based key, and is stable over multiple jobs.
51
+ # default: empty
52
+ shared-key : " ${{ runner.os }}-${{ inputs.rust }}${{ inputs.cache-key }}"
53
+
54
+ # An additional cache key that is added alongside the automatic `job`-based
55
+ # cache key and can be used to further differentiate jobs.
56
+ # default: empty
57
+ key : ${{ inputs.cache-key }}
58
+
59
+ # Determines if the cache should be saved even when the workflow has failed.
60
+ # default: "false"
61
+ cache-on-failure : true
50
62
51
63
- name : " Install LLVM"
52
64
uses : ./.github/composite/llvm
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ jobs:
144
144
uses : ./.github/composite/rust
145
145
with :
146
146
rust : stable
147
- cache-key : ${{ matrix.rust-special }} # 'minimal-deps' or empty/not defined
147
+ cache-key : ${{ matrix.rust-special }} # '- minimal-deps' or empty/not defined
148
148
with-llvm : ${{ matrix.with-llvm }}
149
149
150
150
- name : " Install Rust nightly (minimal deps)"
You can’t perform that action at this time.
0 commit comments