Skip to content

Use sccache in CI - #746

Closed
nazar-pc wants to merge 2 commits into
mainfrom
use-sccache
Closed

Use sccache in CI#746
nazar-pc wants to merge 2 commits into
mainfrom
use-sccache

Conversation

@nazar-pc

@nazar-pc nazar-pc commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Should help making CI faster

Copilot AI review requested due to automatic review settings July 31, 2026 02:12

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 aims to speed up Rust CI by enabling sccache as a rustc wrapper, and it also updates the pinned Rust nightly to pick up latest solver performance improvements.

Changes:

  • Enable sccache in CI via RUSTC_WRAPPER=sccache and add an install step anchored for reuse.
  • Refactor taiki-e/install-action usage to a single pinned anchor (*install-action-version) for consistency.
  • Bump the pinned Rust toolchain from nightly-2026-07-22 to nightly-2026-07-31.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
rust-toolchain.toml Updates the pinned nightly toolchain date.
.github/workflows/rust.yml Enables sccache globally and adds reusable installation wiring in CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/rust.yml Outdated
Comment thread rust-toolchain.toml Outdated
Copilot AI review requested due to automatic review settings July 31, 2026 02:19

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

.github/workflows/rust.yml:132

  • The Use sccache step relies on bash-style env var expansion and redirection (>> $GITHUB_ENV) but doesn’t specify shell: bash. On Windows runners the default shell is PowerShell, so $GITHUB_ENV won’t resolve and this step can fail / not set RUSTC_WRAPPER for subsequent steps. This file also consistently quotes $GITHUB_ENV elsewhere (e.g. rust.yml:109).
          - &use-sccache-step
            name: Use sccache
            run: |
              echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV

Copilot AI review requested due to automatic review settings July 31, 2026 02:27

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI review requested due to automatic review settings July 31, 2026 03:25

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI review requested due to automatic review settings July 31, 2026 03:55

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@nazar-pc

Copy link
Copy Markdown
Owner Author

Had to roll back nightly upgrade due to mozilla/sccache#2787 / rust-lang/cargo#17258

@nazar-pc

Copy link
Copy Markdown
Owner Author

For our purposes it is actually slower instead of faster

@nazar-pc nazar-pc closed this Jul 31, 2026
@nazar-pc
nazar-pc deleted the use-sccache branch July 31, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants