107 Commits
Author SHA1 Message Date
Tethys Svensson 258712b0b7 fix: stop cleanup timestamp pruning after the first entry (#377)
The timestamp branch in rmExcept returned after the first directory
entry, so at most one outdated item was ever removed. Replace the early
return with continue so every entry is checked.
2026-08-12 18:12:05 +02:00
Arpad Borsos b16e8d71b2 bump rollup and rebuild 2026-08-06 08:19:44 +02:00
Arpad Borsos 9f151aca7c update dependencies, rebuild 2026-07-26 16:34:10 +02:00
eitsupi a31add9f17 Fix Windows cache path validation after Rollup migration (#355) 2026-07-04 10:11:26 +02:00
Arpad Borsos 6dfd3c5062 rebuild dist 2026-07-04 09:56:13 +02:00
Arpad Borsos c106961fee use rollup to do bundle splitting
this uses dynamic imports for the cache provider and should thus solve the
deprecated import error when using warpbuild
2026-06-06 14:35:16 +02:00
Arpad Borsos 1fe0a60026 Merge branch 'master' of https://github.com/Swatinem/rust-cache 2026-06-06 14:11:05 +02:00
Arpad Borsos be9aa033ee package maintenance
- update to TS6
- replace ncc by rollup, which seems to now be the recommended workflow according to <https://github.com/actions/typescript-action>
- remove buildjet provider, as they are shutting down, see <https://buildjet.com/for-github-actions/blog/we-are-shutting-down>
2026-06-06 14:02:52 +02:00
eitsupi f51f967e15 fix: include cdylib/rlib/dylib/staticlib targets in build and fingerprint cleanup (#320) 2026-03-19 08:14:45 +01:00
eitsupi bc1860267c fix: include target names in build/ and .fingerprint/ cleanup (#317) 2026-03-14 16:23:14 +01:00
Arpad Borsos 781e8d91ab try reverting pipeline change 2026-03-12 18:11:51 +01:00
Arpad Borsos bf71d02c11 bump dependencies and rebuild 2026-03-12 08:27:56 +01:00
Linda_pp 1a8384176d Migrate to node24 runner (#314) 2026-03-11 08:02:38 +01:00
Kieron Briggs 11da8522bc Compare case-insenitively for full cache key match (#303)
Some self-hosted (or otherwise non-github-hosted) runners are
non-case-preserving for cache keys. To support such configurations, set the
`cache-hit` output variable to `true` if the found cache key matches
case-insenitively.

Fixes: https://github.com/Swatinem/rust-cache/issues/302
2026-01-12 16:10:32 +01:00
Tamir Duberstein 5e4a767433 Consider all installed toolchains in cache key (#293) 2025-12-16 12:30:13 +01:00
marc0246 151eeee51b Add support for running rust-cache commands from within a Nix shell (#290) 2025-12-01 19:56:12 +01:00
Arpad Borsos 779680da71 2.8.2 2025-11-26 11:14:39 +01:00
Ryan Brice 27f6075dd2 feat: Implement ability to disable adding job ID + rust environment hashes to cache names (#279) 2025-11-03 14:24:00 +01:00
dependabot[bot] 14cb63c99f Bump @vercel/ncc from 0.38.3 to 0.38.4 (#263)
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.38.3 to 0.38.4.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.38.3...0.38.4)

---
updated-dependencies:
- dependency-name: "@vercel/ncc"
  dependency-version: 0.38.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-23 09:12:11 +02:00
Arpad Borsos 5abb1e2a95 update dependencies, prepare for release 2025-09-18 08:37:35 +02:00
Rene Leonhardt a8b36e3f74 chore(deps): update dependencies (#251) 2025-07-26 20:53:41 +02:00
Arsenii Lyashenko 7e1e2d0a10 Set empty CARGO_ENCODED_RUSTFLAGS in workspace metadata retrieval (#249) 2025-06-27 19:56:05 +02:00
Sammy Harris 52ea1434f8 support warpbuild cache provider (#247) 2025-06-24 19:04:05 +02:00
Jeroen Bransen eaa85be6b1 Add cache-workspace-crates feature (#246) 2025-06-22 10:43:50 +02:00
Linda_pp 27b8ea9368 Include CPU arch in the cache key (#228) 2025-02-08 15:36:01 +01:00
Arpad Borsos 008623fb83 also cache cargo install metadata 2024-12-29 08:47:45 +01:00
Arpad Borsos 4b1f006ad2 update dependencies, in particular @actions/cache 2024-12-28 08:36:36 +01:00
Benjy Weinberger e8e63cdbf2 Allow opting out of caching $CARGO_HOME/bin. (#216)
Prevents wiping the bin directory, which is harmful for
self-hosted runners.
2024-12-10 08:47:51 +01:00
Rano | Ranadeep 9a2e0d3212 add runner OS in cache key (#220) 2024-12-09 22:32:01 +01:00
Daniel LeCheminant c00f3025ca Adds an option to do lookup-only of the cache (#217) 2024-11-08 20:36:34 +01:00
Arpad Borsos 598fe25fa1 update dependencies, rebuild 2024-10-12 12:14:29 +02:00
Jiahao XU 8f842c2d45 Support Cargo.lock format cargo-lock v4 (#211)
Fixed #209

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-10-08 20:55:46 +02:00
Gunnar Lilleaasen 96a8d65dba Only run macOsWorkaround() on macOS (#206) 2024-09-17 17:45:02 +02:00
Arpad Borsos 2bceda3912 "update dependencies" 2024-03-24 09:56:50 +01:00
Arpad Borsos 1582741630 update dependencies 2024-02-04 09:29:45 +01:00
Arpad Borsos 378c8285a4 Work around upstream GitHub issue and update dependencies 2024-01-14 09:26:03 +01:00
Max Heller d30f1144e8 Only key by Cargo.toml and Cargo.lock files of workspace members (#180) 2023-12-03 11:57:51 +01:00
Arpad Borsos b86d1c6caa bump all the other dependencies too 2023-10-21 10:36:18 +02:00
Wyatt Herkamp f27990c89a Update Dependencies (#172)
Update smol-toml 1.1.3
2023-10-20 15:35:55 +02:00
Filippo Neysofu Costa 67c46e7159 Support for trybuild and similar macro testing tools (#168)
Signed-off-by: Filippo Costa <filippo@neysofu.me>
2023-09-12 19:32:03 +02:00
Arpad Borsos decb69d790 Update dependencies and add changelog 2023-08-20 10:27:32 +02:00
Jiahao XU ab6b2769d1 dep: Use smol-toml instead of toml (#164)
Fixed #162 #163

The former is listed on
https://github.com/toml-lang/toml/wiki#implementations and is toml 1.0
compliant.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-08-19 12:23:03 +02:00
Jiahao XU c0e052c18c Fix hashing of parsed Cargo.toml (#160)
The values for the dependencies could be strings intead of objects, so
add a `try` block to take care of that.

Also set `dep.path` to `""` if the dependency contains a key `path` to
make sure that the cache isn't invalidated due to change in workspace.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-08-12 12:34:30 +02:00
Jiahao XU 4e0f4b19dd Fix typo in hashing parsed Cargo.lock (#159)
This simple mistake caused the entire `Cargo.lock` to be ignored (JS
treats having no return as `false`).

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-08-10 19:50:14 +02:00
Jiahao XU b919e1427f feat: Add logging to Cargo.lock/Cargo.toml hashing (#156)
There are a few problems in cargo-binstall where sometimes change to
`Cargo.lock` does not invalidate the cache.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-08-04 12:39:02 +02:00
Arpad Borsos 80c47cc945 Clean up credentials.toml 2023-08-02 12:54:48 +02:00
Arpad Borsos 3312b3ab47 Slightly improve docs 2023-08-02 12:46:45 +02:00
Arpad Borsos f6987ea139 Improve errors and cleanup
- Silence errors and do not create error annotations, fixes #144
- Implement cleanup for new sparse registry
- Do not clean `-sys` dependencies from `registry/src`, hopefully fixes  #150
2023-08-02 12:15:14 +02:00
Jordan Oroshiba b00faf5858 Add BuildJet Option (#154) 2023-08-01 09:01:11 +02:00
Arpad Borsos 4fedae9bcf "update dependencies and rebuild" 2023-07-31 16:01:23 +02:00