Commit Graph

33 Commits

Author SHA1 Message Date
Kieron Briggs
11da8522bc Compare case-insenitively for full cache key match (#303)
Some checks failed
buildjet / Test buildjet provider on ubuntu-latest (push) Has been skipped
check dist/ / check-dist (push) Has been skipped
coverage / Test `cargo-llvm-cov` on ubuntu-latest (push) Has been skipped
git-registry / Test cargo "git" registry on ubuntu-latest (push) Has been skipped
install / Test `cargo install` on ubuntu-latest (push) Has been skipped
multi-job-cache / Test multi-job cache (1) on ubuntu-latest (push) Has been skipped
multi-job-cache / Test multi-job cache (2) on ubuntu-latest (push) Has been skipped
nix / Test Nix on ubuntu-latest (push) Has been skipped
simple / Test `cargo check/test/build` on ubuntu-latest (push) Has been skipped
target-dir / Test custom target-dir on ubuntu-latest (push) Has been skipped
workspaces / Test multiple workspaces on ubuntu-latest (push) Has been skipped
buildjet / Test buildjet provider on macos-latest (push) Has been cancelled
buildjet / Test buildjet provider on windows-latest (push) Has been cancelled
coverage / Test `cargo-llvm-cov` on macos-latest (push) Has been cancelled
coverage / Test `cargo-llvm-cov` on windows-latest (push) Has been cancelled
git-registry / Test cargo "git" registry on macos-latest (push) Has been cancelled
git-registry / Test cargo "git" registry on windows-latest (push) Has been cancelled
install / Test `cargo install` on macos-latest (push) Has been cancelled
install / Test `cargo install` on windows-latest (push) Has been cancelled
multi-job-cache / Test multi-job cache (1) on macos-latest (push) Has been cancelled
multi-job-cache / Test multi-job cache (1) on windows-latest (push) Has been cancelled
multi-job-cache / Test multi-job cache (2) on macos-latest (push) Has been cancelled
multi-job-cache / Test multi-job cache (2) on windows-latest (push) Has been cancelled
nix / Test Nix on macos-latest (push) Has been cancelled
simple / Test `cargo check/test/build` on macos-latest (push) Has been cancelled
simple / Test `cargo check/test/build` on windows-latest (push) Has been cancelled
target-dir / Test custom target-dir on macos-latest (push) Has been cancelled
target-dir / Test custom target-dir on windows-latest (push) Has been cancelled
workspaces / Test multiple workspaces on macos-latest (push) Has been cancelled
workspaces / Test multiple workspaces on windows-latest (push) Has been cancelled
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
Arpad Borsos
008623fb83 also cache cargo install metadata 2024-12-29 08:47:45 +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
378c8285a4 Work around upstream GitHub issue and update dependencies 2024-01-14 09:26:03 +01: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
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
5e9fae966f fix: cache restore failures (#136)
Fix cache restore failures to to upstream bug.

Fixes #119
2023-05-11 09:01:27 +02:00
Arpad Borsos
3f2513fdf4 avoid calling cargo metadata on pre-cleanup 2022-11-03 11:26:22 +01:00
Arpad Borsos
be4be3720d explicitly close dir handles, add more logging, cleanups 2022-09-04 13:10:36 +02:00
Arpad Borsos
7b8626742a update registry cleaning 2022-07-09 18:51:34 +02:00
Arpad Borsos
86bae2494f clean nested and arbitrary profile and target directories 2022-07-09 16:14:38 +02:00
Arpad Borsos
827b33fbd0 pretty printing and fix workspace package retrieval 2022-07-09 15:51:45 +02:00
Arpad Borsos
6ed4c28a7c rewrite it all 2022-07-09 15:19:29 +02:00
Nick Mosher
260a713186 Cache multiple target directories from 'target-dir' 2022-07-09 11:58:11 +02:00
Vlad-Shcherbina
2055a01dcd Improve diagnostics: show exception stack trace (#63)
Also add logging to the quiet exception handlers.
2022-06-25 23:20:01 +02:00
Arpad Borsos
74e8e24b6d Update dependencies, clean both debug and release targets 2022-04-08 17:25:03 +02:00
Arpad Borsos
d127014599 update dependencies 2021-09-28 17:49:43 +02:00
Tom Parker-Shemilt
536c94f32c Cache-on-failure support (#22) 2021-06-28 23:18:07 +02:00
Arpad Borsos
b495963495 Add a selftest and support for .cargo/bin 2021-02-16 09:06:04 +01:00
Austin Jones
27793b3b80 Add support for the cache-hit output 2021-01-28 18:39:18 +01:00
Arpad Borsos
2639a56bb8 implement support for CARGO_HOME
fixes #8
2021-01-28 18:16:36 +01:00
Arpad Borsos
9e10a44ea3 support working-directory input, cleanup 2020-12-07 23:56:50 +01:00
Arpad Borsos
9de90d2338 only pre-clean when something was restored 2020-10-13 14:01:46 +02:00
Arpad Borsos
292ef23e77 avoid error when saving without git dependencies 2020-10-13 13:52:55 +02:00
Arpad Borsos
5f6034beb8 improve log output 2020-10-06 12:57:42 +02:00
Arpad Borsos
e8e3c57b3b merge all the caches and simplify 2020-10-03 18:39:38 +02:00
Arpad Borsos
f77cb1be47 merge the registry caches together 2020-10-03 18:10:54 +02:00
Arpad Borsos
ef89c3a8eb typo 2020-09-28 12:30:40 +02:00
Arpad Borsos
271ff4b692 log individual timings 2020-09-28 12:26:11 +02:00
Arpad Borsos
cfcc373039 improve logging 2020-09-28 11:54:24 +02:00
Arpad Borsos
99970e092c initial commit 2020-09-26 23:48:29 +02:00