Releases: Swatinem/rust-cache
Releases · Swatinem/rust-cache
v2.3.0
- Add
cache-all-crates
option, which enables caching of crates installed by workflows. - Add installed packages to cache key, so changes to workflows that install rust tools are detected and cached properly.
- Fix cache restore failures due to upstream bug.
- Fix
EISDIR
error due to globed directories. - Update runtime
@actions/cache
,@actions/io
and devtypescript
dependencies. - Update
npm run prepare
so it creates distribution files with the right line endings.
v2.2.1
- Update
@actions/cache
dependency to fix usage ofzstd
compression.
v2.2.0
- Add new
save-if
option to always restore, but only conditionally save the cache.
v2.1.0
- Only hash
Cargo.{lock,toml}
files in the configured workspace directories.
v2.0.2
- Avoid calling cargo metadata on pre-cleanup.
- Added
prefix-key
,cache-directories
andcache-targets
options.
v2.0.1
- Primarily just updating dependencies to fix GitHub deprecation notices.
v2.0.0
- The action code was refactored to allow for caching multiple workspaces and
differenttarget
directory layouts. - The
working-directory
andtarget-dir
input options were replaced by a
singleworkspaces
option that has the form of$workspace -> $target
. - Support for considering
env-vars
as part of the cache key. - The
sharedKey
input option was renamed toshared-key
for consistency.
v1.4.0
- Clean both debug and release target directories.
v1.3.0
- Use Rust toolchain file as additional cache key.
- Allow for a configurable target-dir.
v1.2.0
- Cache
~/.cargo/bin
. - Support for custom
$CARGO_HOME
. - Add a
cache-hit
output. - Add a new
sharedKey
option that overrides the automatic job-name based key.