2020-09-28 12:53:56 +02:00
|
|
|
|
# Changelog
|
|
|
|
|
|
|
2026-08-06 08:20:11 +02:00
|
|
|
|
## 2.9.2
|
|
|
|
|
|
|
|
|
|
|
|
- Fix `credentials.toml` cleanup
|
|
|
|
|
|
- Improvements to cleanup, preserving more valid targets
|
|
|
|
|
|
- Improvements to `cargo install` handling
|
|
|
|
|
|
- Correctly sort/dedupe Rust versions
|
|
|
|
|
|
|
2026-03-12 18:15:39 +01:00
|
|
|
|
## 2.9.1
|
|
|
|
|
|
|
|
|
|
|
|
- Fix regression in hash calculation
|
|
|
|
|
|
|
2026-03-12 18:09:29 +01:00
|
|
|
|
## 2.9.0
|
|
|
|
|
|
|
|
|
|
|
|
- Update to `node24`
|
|
|
|
|
|
- Support running from within a `nix` shell
|
|
|
|
|
|
- Consider all installed toolchains for cache key
|
|
|
|
|
|
- Use case-insensitive comparison to determine exact cache hit
|
|
|
|
|
|
|
2025-11-26 11:14:39 +01:00
|
|
|
|
## 2.8.2
|
|
|
|
|
|
|
|
|
|
|
|
- Don't overwrite env for cargo-metadata call
|
|
|
|
|
|
|
2025-09-18 08:37:35 +02:00
|
|
|
|
## 2.8.1
|
|
|
|
|
|
|
|
|
|
|
|
- Set empty `CARGO_ENCODED_RUSTFLAGS` when retrieving metadata
|
|
|
|
|
|
- Various dependency updates
|
|
|
|
|
|
|
2025-06-25 18:29:07 +02:00
|
|
|
|
## 2.8.0
|
|
|
|
|
|
|
|
|
|
|
|
- Add support for `warpbuild` cache provider
|
|
|
|
|
|
- Add new `cache-workspace-crates` feature
|
|
|
|
|
|
|
2025-03-19 08:16:06 +01:00
|
|
|
|
## 2.7.8
|
|
|
|
|
|
|
|
|
|
|
|
- Include CPU arch in the cache key
|
|
|
|
|
|
|
|
|
|
|
|
## 2.7.7
|
|
|
|
|
|
|
|
|
|
|
|
- Also cache `cargo install` metadata
|
|
|
|
|
|
|
|
|
|
|
|
## 2.7.6
|
|
|
|
|
|
|
|
|
|
|
|
- Allow opting out of caching $CARGO_HOME/bin
|
|
|
|
|
|
- Add runner OS in cache key
|
|
|
|
|
|
- Adds an option to do lookup-only of the cache
|
|
|
|
|
|
|
|
|
|
|
|
## 2.7.5
|
|
|
|
|
|
|
|
|
|
|
|
- Support Cargo.lock format cargo-lock v4
|
|
|
|
|
|
- Only run macOsWorkaround() on macOS
|
|
|
|
|
|
|
2024-01-14 09:26:03 +01:00
|
|
|
|
## 2.7.3
|
|
|
|
|
|
|
|
|
|
|
|
- Work around upstream problem that causes cache saving to hang for minutes.
|
|
|
|
|
|
|
2024-01-10 19:34:14 +01:00
|
|
|
|
## 2.7.2
|
|
|
|
|
|
|
|
|
|
|
|
- Only key by `Cargo.toml` and `Cargo.lock` files of workspace members.
|
|
|
|
|
|
|
2023-10-21 10:37:41 +02:00
|
|
|
|
## 2.7.1
|
|
|
|
|
|
|
|
|
|
|
|
- Update toml parser to fix parsing errors.
|
|
|
|
|
|
|
2023-09-12 19:34:01 +02:00
|
|
|
|
## 2.7.0
|
|
|
|
|
|
|
|
|
|
|
|
- Properly cache `trybuild` tests.
|
|
|
|
|
|
|
2023-08-20 10:26:24 +02:00
|
|
|
|
## 2.6.2
|
|
|
|
|
|
|
|
|
|
|
|
- Fix `toml` parsing.
|
|
|
|
|
|
|
2023-08-12 16:50:53 +02:00
|
|
|
|
## 2.6.1
|
|
|
|
|
|
|
|
|
|
|
|
- Fix hash contributions of `Cargo.lock`/`Cargo.toml` files.
|
|
|
|
|
|
|
2023-08-02 13:03:15 +02:00
|
|
|
|
## 2.6.0
|
|
|
|
|
|
|
|
|
|
|
|
- Add "buildjet" as a second `cache-provider` backend.
|
|
|
|
|
|
- Clean up sparse registry index.
|
|
|
|
|
|
- Do not clean up src of `-sys` crates.
|
|
|
|
|
|
- Remove `.cargo/credentials.toml` before saving.
|
|
|
|
|
|
|
2023-07-03 19:38:01 +02:00
|
|
|
|
## 2.5.1
|
|
|
|
|
|
|
|
|
|
|
|
- Fix hash contribution of `Cargo.lock`.
|
|
|
|
|
|
|
|
|
|
|
|
## 2.5.0
|
|
|
|
|
|
|
|
|
|
|
|
- feat: Rm workspace crates version before caching.
|
|
|
|
|
|
- feat: Add hash of `.cargo/config.toml` to key.
|
|
|
|
|
|
|
2023-05-21 19:36:24 +02:00
|
|
|
|
## 2.4.0
|
2023-05-18 21:48:40 +01:00
|
|
|
|
|
|
|
|
|
|
- Fix cache key stability.
|
2023-05-19 19:30:37 +01:00
|
|
|
|
- Use 8 character hash components to reduce the key length, making it more readable.
|
2023-05-18 21:48:40 +01:00
|
|
|
|
|
2023-05-13 12:16:26 +02:00
|
|
|
|
## 2.3.0
|
2023-05-13 11:13:40 +01:00
|
|
|
|
|
2023-05-13 12:16:26 +02:00
|
|
|
|
- Add `cache-all-crates` option, which enables caching of crates installed by workflows.
|
2023-05-13 11:13:40 +01:00
|
|
|
|
- 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.
|
|
|
|
|
|
|
2023-02-24 10:59:55 +01:00
|
|
|
|
## 2.2.1
|
|
|
|
|
|
|
|
|
|
|
|
- Update `@actions/cache` dependency to fix usage of `zstd` compression.
|
|
|
|
|
|
|
2022-11-09 20:14:41 +01:00
|
|
|
|
## 2.2.0
|
|
|
|
|
|
|
|
|
|
|
|
- Add new `save-if` option to always restore, but only conditionally save the cache.
|
|
|
|
|
|
|
2022-11-06 09:37:23 +01:00
|
|
|
|
## 2.1.0
|
|
|
|
|
|
|
|
|
|
|
|
- Only hash `Cargo.{lock,toml}` files in the configured workspace directories.
|
|
|
|
|
|
|
2022-11-03 11:26:22 +01:00
|
|
|
|
## 2.0.2
|
|
|
|
|
|
|
|
|
|
|
|
- Avoid calling `cargo metadata` on pre-cleanup.
|
2022-11-06 09:37:23 +01:00
|
|
|
|
- Added `prefix-key`, `cache-directories` and `cache-targets` options.
|
2022-11-03 11:26:22 +01:00
|
|
|
|
|
2022-10-16 16:54:17 +02:00
|
|
|
|
## 2.0.1
|
|
|
|
|
|
|
|
|
|
|
|
- Primarily just updating dependencies to fix GitHub deprecation notices.
|
|
|
|
|
|
|
2022-07-16 12:38:38 +02:00
|
|
|
|
## 2.0.0
|
|
|
|
|
|
|
|
|
|
|
|
- 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.
|
|
|
|
|
|
|
2022-04-08 17:27:07 +02:00
|
|
|
|
## 1.4.0
|
|
|
|
|
|
|
|
|
|
|
|
- Clean both `debug` and `release` target directories.
|
|
|
|
|
|
|
2021-05-30 11:04:10 +02:00
|
|
|
|
## 1.3.0
|
|
|
|
|
|
|
|
|
|
|
|
- Use Rust toolchain file as additional cache key.
|
|
|
|
|
|
- Allow for a configurable target-dir.
|
|
|
|
|
|
|
2021-02-16 09:08:48 +01:00
|
|
|
|
## 1.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.
|
|
|
|
|
|
|
2020-12-07 23:56:50 +01:00
|
|
|
|
## 1.1.0
|
|
|
|
|
|
|
|
|
|
|
|
- Add a new `working-directory` input.
|
|
|
|
|
|
- Support caching git dependencies.
|
|
|
|
|
|
- Lots of other improvements.
|
|
|
|
|
|
|
2020-09-29 12:30:19 +02:00
|
|
|
|
## 1.0.2
|
|
|
|
|
|
|
|
|
|
|
|
- Don’t prune targets that have a different name from the crate, but do prune targets from the workspace.
|
|
|
|
|
|
|
2020-09-28 13:06:41 +02:00
|
|
|
|
## 1.0.1
|
2020-09-28 12:53:56 +02:00
|
|
|
|
|
|
|
|
|
|
- Improved logging output.
|
|
|
|
|
|
- Make sure to consider `all-features` dependencies when pruning.
|
|
|
|
|
|
- Work around macOS cache corruption.
|
|
|
|
|
|
- Remove git-db cache for now.
|