actions-rust-lang / setup-rust-toolchain

Setup a specific Rust toolchain with extra features like problem matchers
MIT License
180 stars 32 forks source link

Different cache settings? #16

Closed max-sixty closed 1 year ago

max-sixty commented 1 year ago

We use some more specific cache settings than this action offers. I tried disabling the cache from this action, and adding another step, but:

jonasbb commented 1 year ago

Your workflow looks good to me. This actions sets some environment variables which can affect the cache keys used by Swatinem/rust-cache and can make cargo incapable of using old caches (e.g., incremental is turned off). That should settle itself after you create a new cache with the new data and key. You only enable cache storage on main save-if: ${{ github.ref == 'refs/heads/main' }} so you wouldn't see that yet.

I'm confident everything will work out if you merge the code. You can test everything in a fork to make sure the cache storing on the main branch works.

max-sixty commented 1 year ago

Thanks — that makes sense, I'll close!