3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-01-31 16:17:59 +00:00

feat: Implement ability to disable adding job ID + rust environment hashes to cache names (#279)

This commit is contained in:
Ryan Brice 2025-11-03 21:24:00 +08:00 committed by GitHub
parent 94162284cf
commit 27f6075dd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 440 additions and 272 deletions

View file

@ -12,6 +12,14 @@ inputs:
key:
description: "An additional cache key that is added alongside the automatic `job`-based cache key and can be used to further differentiate jobs."
required: false
add-job-id-key:
description: "If the automatic `job`-based cache key should include the job id. Defaults to true."
required: false
default: "true"
add-rust-environment-hash-key:
description: "Weather the a hash of the rust environment should be included in the cache key. This includes a hash of all Cargo.toml/Cargo.lock files, rust-toolchain files, and .cargo/config.toml files (if present), as well as the specified 'env-vars'. Defaults to true."
required: false
default: "true"
env-vars:
description: "Additional environment variables to include in the cache key, separated by spaces."
required: false