3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-08-08 06:11:24 +00:00

Adds an option to do lookup-only of the cache (#217)

This commit is contained in:
Daniel LeCheminant 2024-11-08 11:36:34 -08:00 committed by GitHub
parent 68b3cb7503
commit c00f3025ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 7 deletions

View file

@ -60,7 +60,7 @@ sensible defaults.
# default: "false"
cache-all-crates: ""
# Determiners whether the cache should be saved.
# Determines whether the cache should be saved.
# If `false`, the cache is only restored.
# Useful for jobs where the matrix is additive e.g. additional Cargo features,
# or when only runs from `master` should be saved to the cache.
@ -69,6 +69,12 @@ sensible defaults.
# To only cache runs from `master`:
save-if: ${{ github.ref == 'refs/heads/master' }}
# Determines whether the cache should be restored.
# If `true` the cache key will be checked and the `cache-hit` output will be set
# but the cache itself won't be restored
# default: "false"
lookup-only: ""
# Specifies what to use as the backend providing cache
# Can be set to either "github" or "buildjet"
# default: "github"