run_tests workflow: add sccache#3127
Merged
sporksmith merged 5 commits intoshadow:mainfrom Aug 25, 2023
Merged
Conversation
Contributor
Author
|
@robgjansen you might also want to take a look to verify this makes sense for "maintenance mode" the sccaches are around 400 MB each, and I think the account limit is 10 GB, so you might occasionally need to manually delete some caches if too many new versions end up getting saved before they get GC'd |
Contributor
Author
Member
stevenengler
approved these changes
Aug 25, 2023
This is redundant with the "run_tests" workflow, which is now just as fast since adding sccache.
* Incremental builds don't help here * sccache won't cache incrementally compiled crates * this is also set in the "run_tests" workflow, where the corresponding configuration shares cache with this job. Using different configurations may cause the caches to be incompatible (i.e. cause cache misses)
I don't think SCCACHE_RECACHE would have worked as intended in this scenario. It tells the sccache server to reset its cache, but the CI wouldn't have written back the cache anyway since the cache key didn't change. Instead we can increment SCCACHE_CACHE_VERSION to force new caches to be saved.
14 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Uh oh!
There was an error while loading. Please reload this page.