Skip to content

feat(ci): add mozilla sccache action#1580

Draft
andreiltd wants to merge 1 commit into
hyperlight-dev:mainfrom
andreiltd:add-sccache
Draft

feat(ci): add mozilla sccache action#1580
andreiltd wants to merge 1 commit into
hyperlight-dev:mainfrom
andreiltd:add-sccache

Conversation

@andreiltd

Copy link
Copy Markdown
Member

https://github.com/marketplace/actions/sccache-action

The sccache action is a step in a workflow that can be used to cache compilation results for subsequent builds, reducing the build time and speeding up the overall development process.

Copilot AI review requested due to automatic review settings June 25, 2026 13:57
@andreiltd andreiltd added github_actions Pull requests that update GitHub Actions code kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. labels Jun 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 installs sccache and 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_WRAPPER for 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.

Comment thread .github/actions/setup-sccache/action.yml
Comment thread .github/workflows/RustNightly.yml Outdated
Comment thread .github/workflows/dep_build_test.yml Outdated
Signed-off-by: Tomasz Andrzejak <andreiltd@gmail.com>
@andreiltd andreiltd marked this pull request as draft June 25, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code kind/enhancement For PRs adding features, improving functionality, docs, tests, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants