mitre / hipcheck

Automatically assess and score software repositories for supply chain risk.
https://mitre.github.io/hipcheck/
Apache License 2.0
62 stars 3 forks source link

build: Use rust-cache in GitHub CI to speed up builds #203

Closed cstepanian closed 1 month ago

cstepanian commented 1 month ago

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