feat(ci): add mozilla sccache action#1580
Draft
andreiltd wants to merge 1 commit into
Draft
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a reusable composite GitHub Action to install/configure sccache and wires it into multiple CI workflows to speed up Rust builds by caching compilation artifacts.
Changes:
- Added a composite action (
.github/actions/setup-sccache) that installssccacheand configures Rust to use it. - Inserted “Set up sccache” into the main build/test, cache-priming, benchmarks, fuzzing, coverage, and nightly workflows.
- Attempted to disable
RUSTC_WRAPPERfor Miri steps (but the current approach needs adjustment per review comments).
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/RustNightly.yml | Adds setup-sccache to nightly workflow; attempts to disable wrapper for Miri. |
| .github/workflows/PrimeCaches.yml | Adds setup-sccache so primed caches benefit from compiler caching. |
| .github/workflows/dep_run_examples.yml | Adds setup-sccache before running examples. |
| .github/workflows/dep_fuzzing.yml | Adds setup-sccache to fuzzing workflow. |
| .github/workflows/dep_code_checks.yml | Adds setup-sccache to code-check jobs (Linux/Windows). |
| .github/workflows/dep_build_test.yml | Adds setup-sccache and adjusts Miri environment (needs fix). |
| .github/workflows/dep_build_guests.yml | Adds setup-sccache to guest build workflow. |
| .github/workflows/dep_benchmarks.yml | Adds setup-sccache to benchmarks workflow. |
| .github/workflows/Coverage.yml | Adds setup-sccache before building guests/coverage. |
| .github/actions/setup-sccache/action.yml | New composite action for installing/configuring sccache. |
Signed-off-by: Tomasz Andrzejak <andreiltd@gmail.com>
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.
https://github.com/marketplace/actions/sccache-action