-
ci: use Swatinem/rust-cache for the Rust workspace job (reliability) (#925)
发布于
2026-06-03 07:12:26 +00:00 The Rust Workspace Tests job manually cached the whole
v2/targetvia
actions/cache@v4. For a 38-crate workspace that dir is multi-GB, and several
CI runs this cycle intermittently died at the cache/setup step (after
toolchain install, before "Run Rust tests"), each needing a rerun.Swatinem/rust-cache@v2 is the de-facto standard Rust CI cache: it caches the
cargo registry/git + a pruned target, evicts stale dependencies, and restores
large workspaces far more reliably and faster than a naive whole-target cache.
workspaces: v2points it at the v2/ cargo workspace.Reliability/speed change — verified by observing subsequent main runs.
下载附件