ci: standardize sccache across workflows#329
Merged
DorianZheng merged 3 commits intomainfrom Mar 2, 2026
Merged
Conversation
Remove Swatinem/rust-cache from all workflows and standardize on sccache as the sole compilation cache. sccache caches individual compilation units via the GHA cache API, which works both on host runners and inside Docker/manylinux containers — unlike Swatinem which only caches host-level target/ directories. Changes: - Remove Swatinem/rust-cache from build-runtime, build-wheels, build-node, and test workflows - Extend sccache to macOS (previously Linux-only) by removing platform conditions from sccache setup and GHA env export steps - Add sccache to clippy (lint.yml) and cli/go test jobs (test.yml) - Skip sccache for rust test job (cargo-llvm-cov conflicts via RUSTC_WRAPPER) - Add CARGO_INCREMENTAL=0 everywhere (required for sccache) - Chain build-runtime after warm-caches via workflow_run trigger - Fix build-wheels Export step: remove explicit SCCACHE_GHA_ENABLED and RUSTC_WRAPPER (let sccache-action set them on success only) - Update README.md with new architecture diagram and cache docs
Unify CI workflows around sccache with GHA cache API variables and align warm-caches/build-runtime orchestration so cache warmup is reflected consistently in workflow behavior and docs.
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
Test plan
warm-cachesand verify sccache stats are populatedbuild-runtimeruns after warm-caches onmainbuild-nodeandbuild-wheelsand confirm artifact builds and expected cache behavior