Skip to content

ci(release): drop sccache from the release build - #2423

Merged
thiras merged 2 commits into
mainfrom
ci/release-drop-sccache
Oct 12, 2026
Merged

thiras merged 2 commits into
mainfrom
ci/release-drop-sccache

Conversation

@thiras

@thiras thiras commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove the Setup sccache step and the RUSTC_WRAPPER / SCCACHE_GHA_ENABLED env from build-binaries in release.yml.
  • Add a comment in their place saying why the release build runs without a compiler cache.

Why

GitHub scopes a tag-push run's cache writes to that tag. A later tag can read only its own caches and main's, and main never builds the --release --target <triple> artifacts, so sccache never hit on a later release. It still wrote under the tag ref: v0.0.3 left 171 entries (224 MiB). The repo is at its 10 GB Actions cache limit (10.73 GB in use), so those writes evict main's rust-cache partitions.

Unchanged:

  • verify keeps its read-only rust-cache restore. It hits, because it reads main's clippy partition, and with save-if: false it never writes.
  • The Docker image build keeps no-cache: true, so apt-get upgrade runs on every release.
  • cross legs never used sccache (RUSTC_WRAPPER was only set on the native step).

Test plan

  • actionlint .github/workflows/release.yml
  • pre-commit run --files .github/workflows/release.yml
  • The next tag's build-binaries legs succeed. ci.yml does not run release.yml, so this PR's CI does not exercise the change.

🤖 Generated with Claude Code

A tag run reads only caches saved on its own tag or on main, and main
never builds the release targets, so sccache never hit on a later
release. Its writes still landed under the tag ref (v0.0.3 left 171
entries, 224 MiB) while the repo sits at its 10 GB Actions cache limit,
evicting main's rust-cache partitions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thiras thiras self-assigned this Oct 12, 2026
Move the no-compiler-cache note above build-binaries' steps so it reads
as covering every leg, not the cross install step. Correct the verify
job's rust-cache note: a tag push can save a cache, scoped to that tag,
so no later release can restore it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thiras
thiras merged commit 12ecb06 into main Oct 12, 2026
30 checks passed
@thiras
thiras deleted the ci/release-drop-sccache branch October 12, 2026 08:10
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.

1 participant