-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extra tests CI: improve Rust caching (#2575)
* Cache more of ~/.cargo Unclear whether this is needed, but matches other examples found online, and doesn't seem to increase (compressed) cache size significantly. * Add month to cache restore-keys Using the month in the cache `restore-keys` in addition to `key` ensures that we *reset* the cache every month, instead of continuing to grow the previous month's cache. * Include hash of the lockfile in cache keys but not restore-keys This ensures we update the cache when our dependencies change. * In extra_tests: Use sccache to cache built rust dependencies Largely cargo-culted from https://www.infinyon.com/blog/2021/04/github-actions-best-practices/#optimizing-rusts-build-speed-with-sccache Only ends up using ~200 MB of cache, and speeds up the build quite a bit.
- Loading branch information
1 parent
a2a4539
commit 2a6b99c
Showing
3 changed files
with
57 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters