Skip to content

[codex] add sccache to CI#50

Draft
lovasoa wants to merge 1 commit intomasterfrom
add-sccache-ci
Draft

[codex] add sccache to CI#50
lovasoa wants to merge 1 commit intomasterfrom
add-sccache-ci

Conversation

@lovasoa
Copy link
Copy Markdown
Collaborator

@lovasoa lovasoa commented Apr 10, 2026

Summary

Enable sccache in GitHub Actions so CI can cache Rust compilation outputs and CMake-driven C/C++ compilation outputs across runs.

Changes

  • install mozilla-actions/sccache-action in both workflow jobs
  • set RUSTC_WRAPPER=sccache and SCCACHE_GHA_ENABLED=true
  • set CMAKE_C_COMPILER_LAUNCHER=sccache and CMAKE_CXX_COMPILER_LAUNCHER=sccache through the workflow environment
  • print sccache --show-stats at the end of each job for visibility

Why

Most of the expensive CI time is spent compiling the bundled HiGHS C++ sources. Swatinem/rust-cache helps with Cargo downloads and dependency artifacts, but sccache is the relevant cache layer for repeated compiler invocations from both Rust and the CMake build.

Validation

  • local: cargo test
  • CI: not yet run on this branch at PR creation time

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