Skip to content

Releases: Swatinem/rust-cache

v2.5.0

18 Jun 13:34
v2.5.0
2656b87
Compare
Choose a tag to compare

What's Changed

  • feat: Rm workspace crates version before caching by @NobodyXu in #147
  • feat: Add hash of .cargo/config.toml to key by @NobodyXu in #149

New Contributors

Full Changelog: v2.4.0...v2.5.0

v2.4.0

21 May 17:37
v2.4.0
988c164
Compare
Choose a tag to compare
  • Fix cache key stability.
  • Use 8 character hash components to reduce the key length, making it more readable.

v2.3.0

13 May 10:18
v2.3.0
060bda3
Compare
Choose a tag to compare
  • 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 dev typescript dependencies.
  • Update npm run prepare so it creates distribution files with the right line endings.

v2.2.1

24 Feb 10:00
v2.2.1
6fd3edf
Compare
Choose a tag to compare
  • Update @actions/cache dependency to fix usage of zstd compression.

v2.2.0

09 Nov 19:16
359a70e
Compare
Choose a tag to compare
  • Add new save-if option to always restore, but only conditionally save the cache.

v2.1.0

06 Nov 09:09
b894d59
Compare
Choose a tag to compare
  • Only hash Cargo.{lock,toml} files in the configured workspace directories.

v2.0.2

03 Nov 10:33
v2.0.2
b5ec9ed
Compare
Choose a tag to compare
  • Avoid calling cargo metadata on pre-cleanup.
  • Added prefix-key, cache-directories and cache-targets options.

v2.0.1

16 Oct 15:01
22c9328
Compare
Choose a tag to compare
  • Primarily just updating dependencies to fix GitHub deprecation notices.

v2.0.0

16 Jul 10:43
6720f05
Compare
Choose a tag to compare
  • The action code was refactored to allow for caching multiple workspaces and
    different target directory layouts.
  • The working-directory and target-dir input options were replaced by a
    single workspaces 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 to shared-key for consistency.

v1.4.0

13 Jun 08:45
v1.4.0
cb2cf0c
Compare
Choose a tag to compare
  • Clean both debug and release target directories.