Skip to content

ci: standardize sccache across workflows#329

Merged
DorianZheng merged 3 commits intomainfrom
refactor/consolidate-sccache-caching
Mar 2, 2026
Merged

ci: standardize sccache across workflows#329
DorianZheng merged 3 commits intomainfrom
refactor/consolidate-sccache-caching

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

Summary

  • standardize CI workflows on sccache and shared GHA cache API env export
  • align warm-caches and build-runtime workflow behavior/documentation around warmup-first execution
  • remove legacy rust-cache-oriented workflow configuration where sccache is now authoritative

Test plan

  • Dispatch warm-caches and verify sccache stats are populated
  • Verify build-runtime runs after warm-caches on main
  • Dispatch build-node and build-wheels and confirm artifact builds and expected cache behavior

DorianZheng and others added 3 commits March 2, 2026 20:59
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.
@DorianZheng DorianZheng merged commit 5244355 into main Mar 2, 2026
@DorianZheng DorianZheng deleted the refactor/consolidate-sccache-caching branch March 2, 2026 15:14
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