Consider using sccache to cache Rust code on CI builds #48412
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-infra
Relevant to the infrastructure team, which will review and decide on the PR/issue.
Currently, sccache is only used for caching C dependencies of the rust compiler. However, sccache has (experimental) support for caching Rust builds. Since any given pull request will usually only modify a few compiler crates, this has the potential to greatly reduce build times (helping to address issues such as #46903).
At the moment, sscache doesn't appear to handle incremental compilation. It might be worthwhile to look into extending sscache to support caching incremental compilation output - though given the total number of jobs Rust runs on Appveyor and Travis CI, the amount of storage required could be prohibitive.
The text was updated successfully, but these errors were encountered: