Skip to content

v2.3.0

Compare
Choose a tag to compare
@BD103 BD103 released this 25 Aug 15:04
· 8 commits to main since this release
d8d3ade

This release adds an opt-in integration with cargo-sweep that will automatically remove stale files in the target folder before uploading it to the cache. This will prevent caches from slowly snowballing in size as new build artifacts are created and old ones remain.

- uses: Leafwing-Studios/cargo-cache@v2.3.0
  with:
    # Set this to enable `cargo-sweep`.
    sweep-cache: true

  # Any files within the `target` folder not accessed by this will be deleted before uploading the cache.
- run: cargo test

This uses a timestamp to track which files are not accessed between when cargo-cache is initially run and when the cache is uploaded. If you run a cargo command before running cargo-cache, the artifacts it uses may be purged from the cache.

What's Changed

Full Changelog: v2.2.0...v2.3.0