Leafwing-Studios / cargo-cache

Cache your Cargo build files
Apache License 2.0
13 stars 2 forks source link

Add `save-if` option #20

Closed TimJentzsch closed 3 months ago

TimJentzsch commented 3 months ago

Add an option which allows the user to define a condition for saving the cache.

This would for example allow use cases where you only want to save caches on the default branch, but use them everywhere.

Might be needed for https://github.com/bevyengine/bevy/pull/13040.

Prior art: https://github.com/Swatinem/rust-cache