Skip to content

Consider using sccache to cache Rust code on CI builds #48412

Closed
@Aaron1011

Description

@Aaron1011

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions