Repository navigation
ci(release): drop sccache from the release build - #2423
Merged
Merged
Conversation
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]>
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]>
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.
Summary
Setup sccachestep and theRUSTC_WRAPPER/SCCACHE_GHA_ENABLEDenv frombuild-binariesinrelease.yml.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, andmainnever builds the--release --target <triple>artifacts, so sccache never hit on a later release. It still wrote under the tag ref:v0.0.3left 171 entries (224 MiB). The repo is at its 10 GB Actions cache limit (10.73 GB in use), so those writes evictmain's rust-cache partitions.Unchanged:
verifykeeps its read-only rust-cache restore. It hits, because it readsmain'sclippypartition, and withsave-if: falseit never writes.no-cache: true, soapt-get upgraderuns on every release.crosslegs never used sccache (RUSTC_WRAPPERwas only set on the native step).Test plan
actionlint .github/workflows/release.ymlpre-commit run --files .github/workflows/release.ymlbuild-binarieslegs succeed.ci.ymldoes not runrelease.yml, so this PR's CI does not exercise the change.🤖 Generated with Claude Code