The rust-cache action will preserve the CARGO_HOME and target directories between builds. These contain the downloaded dependency crates (in source code) and the compiled dependency crates, respectively.
Key the cache on the OS target to keep the caches separate between OS builds.
Relates to #139
The
rust-cache
action will preserve the CARGO_HOME and target directories between builds. These contain the downloaded dependency crates (in source code) and the compiled dependency crates, respectively.Key the cache on the OS target to keep the caches separate between OS builds.
Docs: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows https://github.com/Swatinem/rust-cache https://github.com/axodotdev/cargo-dist/issues/907