Skip to content

Commit a90048d

Browse files
authored
Merge pull request #41 from iainlane/iainlane/propagate-cache-key
2 parents 634cedf + 597574a commit a90048d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Afterward, the `components` and `target` specified via inputs are installed in a
5656
| `cache` | Automatically configure Rust cache (using [`Swatinem/rust-cache`]) | true |
5757
| `cache-workspaces` | Propagates the value to [`Swatinem/rust-cache`] | |
5858
| `cache-on-failure` | Propagates the value to [`Swatinem/rust-cache`] | true |
59+
| `cache-key` | Propagates the value to [`Swatinem/rust-cache`] as `key` | |
5960
| `matcher` | Enable problem matcher to surface build messages and formatting issues | true |
6061
| `rustflags` | Set the value of `RUSTFLAGS` (set to empty string to avoid overwriting existing flags) | "-D warnings" |
6162

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ inputs:
3535
description: "Also cache on workflow failures"
3636
default: "true"
3737
required: false
38+
cache-key:
39+
description: "An additional cache key that is added alongside the automatic `job`-based cache key and can be used to further differentiate jobs."
40+
required: false
3841
matcher:
3942
description: "Enable the Rust problem matcher"
4043
required: false
@@ -185,3 +188,4 @@ runs:
185188
workspaces: ${{inputs.cache-workspaces}}
186189
cache-directories: ${{inputs.cache-directories}}
187190
cache-on-failure: ${{inputs.cache-on-failure}}
191+
key: ${{inputs.cache-key}}

0 commit comments

Comments
 (0)