Skip to content

Resolve sccache from PATH for RUSTC_WRAPPER - #183

Merged
skeet70 merged 1 commit into
mainfrom
fix-sccache-wrapper-path
Nov 2, 2026
Merged

skeet70 merged 1 commit into
mainfrom
fix-sccache-wrapper-path

Conversation

@skeet70

@skeet70 skeet70 commented Nov 2, 2026

Copy link
Copy Markdown
Member

RUSTC_WRAPPER was hardcoded to $HOME/.cargo/bin/sccache. taiki-e/install-action only installs there when the cargo on PATH lives in $CARGO_HOME/bin; otherwise it installs into ~/.install-action/bin and adds that to PATH. On the macos-15-arm64 20261028 runner image, cargo resolves to /opt/homebrew/opt/rustup/bin/cargo, so sccache lands in ~/.install-action/bin and cargo fails before compiling:

error: could not execute process `/Users/runner/.cargo/bin/sccache rustc -vV` (never executed)
Caused by: No such file or directory (os error 2)

Failing job: https://github.com/IronCoreLabs/ironcore-alloy/actions/runs/41354337198/job/125522159373?pr=355

Setting RUSTC_WRAPPER=sccache lets cargo resolve it from PATH, wherever install-action put it. Applied to rust-artifact.yaml, plus rust-ci.yaml and rust-daily.yaml, which hardcode the same path but only run on Ubuntu today.

Non-breaking: rust-artifact-v0.0.0, rust-ci-v3.0.0 and rust-daily-v1.0.0 move on merge.

taiki-e/install-action installs into ~/.install-action/bin when the cargo on PATH is outside $CARGO_HOME/bin, as on the macos-15-arm64 image where cargo comes from Homebrew's rustup. The hardcoded ~/.cargo/bin/sccache then doesn't exist and cargo fails to start.
@skeet70
skeet70 requested a review from a team as a code owner November 2, 2026 21:07
@skeet70
skeet70 requested review from coltfred and removed request for a team November 2, 2026 21:07
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Merging this PR will move these workflow tags:

rust-artifact-v0.0.0
rust-ci-v3.0.0
rust-daily-v1.0.0

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

File Coverage Lines
All files 66% 66% ✅

Minimum allowed coverage is 24%

Generated by 🐒 cobertura-action against 020c5cf

@skeet70
skeet70 requested review from giarc3 and removed request for coltfred November 2, 2026 21:18
@skeet70
skeet70 enabled auto-merge (squash) November 2, 2026 21:18
@skeet70
skeet70 merged commit cd2eed0 into main Nov 2, 2026
13 checks passed
@skeet70
skeet70 deleted the fix-sccache-wrapper-path branch November 2, 2026 21:21
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