Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@aleksator
Copy link
Contributor

This commit applies the suggestion from The Cargo Book:
https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci

Comment on lines +457 to +459
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The content of these three directories is actually OS-independent, so it's possible to cache it under a separate key that does not depend on runner.os.

There are some caveats, though, with the current cache implementation; see also #325 for more elaborate examples.

@dhadka dhadka merged commit cc2d767 into actions:main May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants