diff --git a/README.md b/README.md index bcdeaea..3a651c6 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,6 @@ to see those details as well as further details related to caching operations. - The cache cleaning process currently removes all the files from `~/.cargo/bin` that were present before the action ran (for example `rustc`), by default. - This can be an issue on long-running self-hosted runners, where such state + This can be an issue on long-running self-hosted runners, where such state is expected to be preserved across runs. You can work around this by setting `cache-bin: "false"`. diff --git a/action.yml b/action.yml index 2bcdae4..cb4c157 100644 --- a/action.yml +++ b/action.yml @@ -41,8 +41,9 @@ inputs: required: false default: "github" cache-bin: - description: "A boolean value indicating whether to cache ${CARGO_HOME}/bin (default: true)" + description: "Determines whether to cache ${CARGO_HOME}/bin." required: false + default: "true" lookup-only: description: "Check if a cache entry exists without downloading the cache" required: false diff --git a/src/config.ts b/src/config.ts index adb03e2..8f1e977 100644 --- a/src/config.ts +++ b/src/config.ts @@ -133,7 +133,7 @@ export class CacheConfig { workspaces.push(new Workspace(root, target)); } self.workspaces = workspaces; - + let keyFiles = await globFiles(".cargo/config.toml\nrust-toolchain\nrust-toolchain.toml"); const parsedKeyFiles = []; // keyFiles that are parsed, pre-processed and hashed