ci: cache cargo registry and dependency builds #387

Merged
jqueuniet merged 1 commit from ci/build-cache into main 2026-10-27 22:03:17 +01:00
Owner
  • Swatinem/rust-cache v2.9.3, pinned by commit, in stable, msrv (keyed on the 1.90 toolchain) and python. Workspace artefacts are pruned before saving: stable caches 314 MB, msrv 112 MB, python 81 MB.
  • CARGO_PROFILE_DEV_DEBUG=line-tables-only; rust-cache sets CARGO_INCREMENTAL=0.

Run #160 (filled cache, against #158): stable 112 → 51 s, msrv 47 → 30 s, python 44 → 23 s; whole run ~2 min → 73 s. Saving (~41 s for stable) only happens on a Cargo.lock or compiler change.

- `Swatinem/rust-cache` v2.9.3, pinned by commit, in `stable`, `msrv` (keyed on the 1.90 toolchain) and `python`. Workspace artefacts are pruned before saving: `stable` caches 314 MB, `msrv` 112 MB, `python` 81 MB. - `CARGO_PROFILE_DEV_DEBUG=line-tables-only`; rust-cache sets `CARGO_INCREMENTAL=0`. Run #160 (filled cache, against #158): `stable` 112 → 51 s, `msrv` 47 → 30 s, `python` 44 → 23 s; whole run ~2 min → 73 s. Saving (~41 s for `stable`) only happens on a `Cargo.lock` or compiler change.
ci: cache cargo registry and build output
All checks were successful
CI / msrv (1.90) (pull_request) Successful in 1m4s
CI / audit (pull_request) Successful in 19s
CI / python bindings (3.11) (pull_request) Successful in 47s
CI / stable (pull_request) Successful in 3m1s
01e611fc3b
Per job and compiler, keyed on Cargo.lock. Incremental builds off and
line-table debug info cut the remaining compile time.
ci: cache with rust-cache
All checks were successful
CI / msrv (1.90) (pull_request) Successful in 30s
CI / audit (pull_request) Successful in 19s
CI / stable (pull_request) Successful in 51s
CI / python bindings (3.11) (pull_request) Successful in 23s
6db0df0847
Prunes workspace artefacts before saving, keeping the caches to the
dependencies. Pinned to v2.9.3 by commit.
jqueuniet force-pushed ci/build-cache from 6db0df0847
All checks were successful
CI / msrv (1.90) (pull_request) Successful in 30s
CI / audit (pull_request) Successful in 19s
CI / stable (pull_request) Successful in 51s
CI / python bindings (3.11) (pull_request) Successful in 23s
to 3cf8a812c8
All checks were successful
CI / msrv (1.90) (push) Successful in 1m3s
CI / audit (push) Successful in 18s
CI / python bindings (3.11) (push) Successful in 46s
CI / stable (push) Successful in 2m13s
CI / msrv (1.90) (pull_request) Successful in 29s
CI / audit (pull_request) Successful in 19s
CI / stable (pull_request) Successful in 51s
CI / python bindings (3.11) (pull_request) Successful in 23s
2026-10-27 21:43:29 +01:00
Compare
jqueuniet changed title from ci: cache cargo registry and build output to ci: cache cargo registry and dependency builds 2026-10-27 21:44:04 +01:00
jqueuniet deleted branch ci/build-cache 2026-10-27 22:03:17 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jqueuniet/dm2-tools!387
No description provided.