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
3bf42ac996
invert target/profile check in cleanup
...
closes #356
2026-08-06 08:17:41 +02:00
Clayton Ramsey
66b1e95261
fix: support Cargo V2 build dir layout ( #371 )
2026-08-06 07:42:52 +02:00
Arpad Borsos
9f151aca7c
update dependencies, rebuild
2026-07-26 16:34:10 +02:00
Arpad Borsos
cb96ac76d8
fix credentials cleanup path
2026-07-04 09:51:42 +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
Charles Lechasseur
ed5e89b8ff
feat: cache more cargo binaries ( #325 )
...
Instead of relying on `.crates2.json` to know which binaries are installed,
scan the bin directory and save the result in the action's state.
2026-04-12 19:41:04 +02:00
eitsupi
bc1860267c
fix: include target names in build/ and .fingerprint/ cleanup ( #317 )
2026-03-14 16:23:14 +01:00
Arpad Borsos
008623fb83
also cache cargo install metadata
2024-12-29 08:47:45 +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
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
80c47cc945
Clean up credentials.toml
2023-08-02 12:54:48 +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
Steven Hartland
ad97570a01
fix: cache key stability ( #142 )
...
Ensure consistency of main and post configuration by storing and
restoring it from state, which in turn ensures cache key stability.
Also:
* Fixed some typos.
* Use core.error for logging errors.
* Fix inverted condition on cache-all-crates.
Reverts: #138
Fixes #140
2023-05-18 22:48:40 +02:00
Steven Hartland
def0926359
feat: add option to cache all crates ( #137 )
...
Add cache-all-crates option which allows all crates to be cached instead
of just the dependency crates. This is useful when additional crates are
required for CI tooling.
2023-05-11 23:15:09 +02:00
Arpad Borsos
3f2513fdf4
avoid calling cargo metadata on pre-cleanup
2022-11-03 11:26:22 +01:00
Arpad Borsos
0d72e5f9a0
revert explicit dir close
2022-09-04 13:22:47 +02:00
Arpad Borsos
be4be3720d
explicitly close dir handles, add more logging, cleanups
2022-09-04 13:10:36 +02:00
Arpad Borsos
622616010e
prepare v2
2022-07-16 12:38:38 +02:00
Arpad Borsos
0497f9301f
improve registry cleanpu
2022-07-09 19:20:02 +02:00
Arpad Borsos
7b8626742a
update registry cleaning
2022-07-09 18:51:34 +02:00
Arpad Borsos
911d8e9e55
test sparse registry
2022-07-09 17:49:43 +02:00
Arpad Borsos
07a2ee71bc
lol, dependency check was reversed
2022-07-09 17:37:48 +02:00
Arpad Borsos
86bae2494f
clean nested and arbitrary profile and target directories
2022-07-09 16:14:38 +02:00
Arpad Borsos
6ed4c28a7c
rewrite it all
2022-07-09 15:19:29 +02:00