fix(ci): wire sccache into the CMake compiler launcher - #7
Merged
Merged
Conversation
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.
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.
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.