Skip to content

fix(ci): wire sccache into the CMake compiler launcher - #7

Merged
Emin017 merged 2 commits into
mainfrom
emin/enable-sccache-into-cmake
Sep 4, 2026
Merged

Emin017 merged 2 commits into
mainfrom
emin/enable-sccache-into-cmake

Conversation

@Emin017

@Emin017 Emin017 commented Sep 3, 2026

Copy link
Copy Markdown
Member

The sccache action only installs the binary and configures the GitHub Actions cache backend; it never hooks sccache into the compiler invocation, so builds ran uncached. Point CMAKE_C/CXX_COMPILER_LAUNCHER at sccache when it is available on PATH and print cache statistics after the build to make hits observable.

The sccache action only installs the binary and configures the GitHub
Actions cache backend; it never hooks sccache into the compiler
invocation, so builds ran uncached. Point CMAKE_C/CXX_COMPILER_LAUNCHER
at sccache when it is available on PATH and print cache statistics after
the build to make hits observable.
sccache-action only installs the binary and exports SCCACHE_PATH; the
GHA cache backend stays off unless SCCACHE_GHA_ENABLED is set, so the
cache lived on the ephemeral runner disk and never persisted across
runs. Enable it at the job level so sccache uses the GitHub Actions
cache service (v2) via the runner-provided ACTIONS_RESULTS_URL and
ACTIONS_RUNTIME_TOKEN.

Also log the compiler-launcher decision in build-sizer.sh and verify
after configure that the generated compile rules actually invoke
sccache, so a silently unwired launcher is visible in the CI log
instead of only surfacing as zero compile requests in the stats.
@Emin017
Emin017 merged commit ae01c38 into main Sep 4, 2026
1 check passed
@Emin017
Emin017 deleted the emin/enable-sccache-into-cmake branch September 4, 2026 01:49
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