bytecodealliance / lucet

Lucet, the Sandboxing WebAssembly Compiler.
Apache License 2.0
4.07k stars 164 forks source link

📉 Reduce CircleCI cache sizes by keying on `rust-toolchain` #568

Closed acfoltzer closed 4 years ago

acfoltzer commented 4 years ago

This should prevent the cache of the /target directory from accruing complete sets of artifacts from multiple rustc versions over time.

This patch also fixes the use of {{ .Environment.CACHE_VERSION }} so that it applies to Linux, and so that it forms proper prefixes in the macOS cache keys.

acfoltzer commented 4 years ago

We still will have some issues with cruft accruing as Cargo.lock dependencies evolve while we are pinned to a particular rustc version. Hopefully we'll be able to continue updating the rustc version regularly enough that it won't get too bad before we wipe the slate clean for the new version.