Speed up CI by caching rustup toolchain and using cargo-binstall #2
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ci-cache-speedup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The CI job moved from the
rust:latestimage to the genericnode:20-bookwormrunner image, which has no Rust toolchain preinstalled. Every run was reinstalling the full toolchain via rustup and compilingcargo-make/cargo-auditfrom source withcargo install, adding ~10 minutes to every build.This PR:
~/.rustupto the cache path so the installed toolchain persists across runsrustcis already present (cache hit)cargo-binstalland uses it to fetch prebuiltcargo-make/cargo-auditbinaries instead of compiling them from sourceTest plan