Skip to content

ci: Add sccache compiler cache#567

Draft
beekld wants to merge 1 commit into
mainfrom
bklimt/ci-sccache
Draft

ci: Add sccache compiler cache#567
beekld wants to merge 1 commit into
mainfrom
bklimt/ci-sccache

Conversation

@beekld

@beekld beekld commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the sccache compiler cache to CI builds. Local cache only -- no cross-run backend yet -- so the benefit comes entirely from within-job hits. Notably, build-dynamodb-windows compiles the AWS SDK 5 times in one job (build.sh once + build-release-windows.sh four times for static/shared x release/debug); sccache should catch the redundant compilation across those sub-builds.

Changes:

  • New install step in .github/actions/ci/action.yml (mozilla-actions/sccache-action@v0.0.10).
  • Build scripts pass -D CMAKE_C_COMPILER_LAUNCHER=sccache -D CMAKE_CXX_COMPILER_LAUNCHER=sccache when sccache is on PATH; no-op locally.
  • sccache --show-stats printed after the unit-test build and at the end of the job.

Adds a dependency on the sccache binary (Mozilla, MIT/Apache-2.0). No new runtime deps in the published SDKs.

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