Skip to content

Commit 30081c4

Browse files
committed
fix: add cache-bin input with true as default value
1 parent 97db979 commit 30081c4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Afterward, the `components` and `target` specified via inputs are installed in a
5858
| `cache-workspaces` | Propagates the value to [`Swatinem/rust-cache`] | |
5959
| `cache-on-failure` | Propagates the value to [`Swatinem/rust-cache`] | true |
6060
| `cache-key` | Propagates the value to [`Swatinem/rust-cache`] as `key` | |
61+
| `cache-bin` | Propagates the value to [`Swatinem/rust-cache`] | |
6162
| `matcher` | Enable problem matcher to surface build messages and formatting issues | true |
6263
| `rustflags` | Set the value of `RUSTFLAGS` (set to empty string to avoid overwriting existing flags) | "-D warnings" |
6364
| `override` | Setup the last installed toolchain as the default via `rustup override` | true |

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ inputs:
3838
cache-key:
3939
description: "An additional cache key that is added alongside the automatic `job`-based cache key and can be used to further differentiate jobs."
4040
required: false
41+
cache-bin:
42+
description: "Determines whether to cache ${CARGO_HOME}/bin."
43+
required: false
44+
default: "true"
4145
matcher:
4246
description: "Enable the Rust problem matcher"
4347
required: false
@@ -199,4 +203,5 @@ runs:
199203
workspaces: ${{inputs.cache-workspaces}}
200204
cache-directories: ${{inputs.cache-directories}}
201205
cache-on-failure: ${{inputs.cache-on-failure}}
206+
cache-bin: ${{inputs.cache-bin}}
202207
key: ${{inputs.cache-key}}

0 commit comments

Comments
 (0)