setup-rust-toolchain
setup-rust-toolchain copied to clipboard
Add support for adding to cache key
When using this action in multiple matrix jobs in the same workflow, the generated cache key is the same for all of them, because they all get the same job ID. This means that all apart from the first job are unable to save the cache, and subsequent runs might restore the wrong cache.
The Swatinem/rust-cache
action which we use for caching has a key
input which it puts in its cache key. (It doesn't override the key, just adds to it.) Providing this as an input here will allow us to generate a unique cache key for each job in the matrix.