Skip to content

ci: drop unused cache from release workflow - #6742

Merged
bug-ops merged 2 commits into
mainfrom
ci/release-workflow-drop-unused-cache
Aug 16, 2026
Merged

ci: drop unused cache from release workflow#6742
bug-ops merged 2 commits into
mainfrom
ci/release-workflow-drop-unused-cache

Conversation

@bug-ops

@bug-ops bug-ops commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove Swatinem/rust-cache and mozilla-actions/sccache-action from the build-binaries job in release.yml
  • Remove the step-level RUSTC_WRAPPER: sccache / SCCACHE_GHA_ENABLED: "true" override on the "Build binary (native)" step, so it correctly inherits the workflow-level RUSTC_WRAPPER: ""

Release builds run only on v* tag pushes, infrequently enough that any cache entry written by the previous release has almost certainly been evicted from the shared 10 GiB GHA cache (LRU eviction, plus 7-day unused-entry eviction) before the next release runs. Every release build was therefore already a cold cache miss in practice, while still writing a fresh multi-GB cache entry each run that consumes shared cache quota ci.yml depends on for its frequent, genuinely cache-effective runs.

ci.yml, ci-non-linux.yml, and other workflows that run frequently keep their existing caching unchanged — this PR is scoped to release.yml's build-binaries job only. The cross build path never referenced sccache/rust-cache, and no other job in release.yml (publish-crates, create-release, docker-publish) uses actions/cache, Swatinem/rust-cache, or sccache.

Test plan

  • fy parse .github/workflows/release.yml — YAML valid
  • Manual review of the diff: no dangling references to removed steps, cross build path unaffected, native build step now correctly inherits top-level RUSTC_WRAPPER: ""
  • Workflow is tag-push-triggered and cannot be executed in this session; verification is limited to static review

Release builds run only on v* tag pushes, infrequently enough that any
cache entry from the previous release has almost certainly been evicted
from the shared 10 GiB GHA cache (LRU eviction, 7-day unused-entry
eviction) by the time the next release runs. Every release build is
therefore already a cold cache miss, while the cache write still costs
multi-GB against the shared quota that ci.yml relies on for its
frequent, genuinely cache-effective runs.

Removes Swatinem/rust-cache and mozilla-actions/sccache-action from the
build-binaries job, and the step-level RUSTC_WRAPPER/SCCACHE_GHA_ENABLED
override so the native build step inherits the top-level RUSTC_WRAPPER=""
already set for the workflow.
@github-actions github-actions Bot added documentation Improvements or additions to documentation ci CI/CD configuration size/S Small PR (11-50 lines) labels Aug 16, 2026
GitHub's windows-11-arm hosted runner reached general availability
for public repositories in August 2025, providing a native MSVC
ARM64 toolchain and Windows SDK. Build aarch64-pc-windows-msvc
natively there instead of leaving the target commented out, since
the previous blocker (cross-compiling crypto crates from Linux
without Windows ARM64 SDK headers) no longer applies to a native
build.
@bug-ops
bug-ops enabled auto-merge (squash) August 16, 2026 16:38
@bug-ops
bug-ops merged commit e7c999a into main Aug 16, 2026
51 checks passed
@bug-ops
bug-ops deleted the ci/release-workflow-drop-unused-cache branch August 16, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD configuration documentation Improvements or additions to documentation size/S Small PR (11-50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant