3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-02-20 17:34:46 +00:00

Consider all installed toolchains in cache key (#293)

This commit is contained in:
Tamir Duberstein 2025-12-16 12:30:13 +01:00 committed by GitHub
parent 0aa729bb7a
commit 5e4a767433
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 162 additions and 54 deletions

View file

@ -143,7 +143,8 @@ This cache is automatically keyed by:
- the github [`job_id`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_id)
(if `add-job-id-key` is `"true"`),
- the rustc release / host / hash,
- the rustc release / host / hash (for all installed toolchains when
available),
- the following values, if `add-rust-environment-hash-key` is `"true"`:
- the value of some compiler-specific environment variables (eg. RUSTFLAGS, etc), and
- a hash of all `Cargo.lock` / `Cargo.toml` files found anywhere in the repository (if present).