diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-04-13 00:09:15 -0500 |
|---|---|---|
| committer | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-04-13 00:09:15 -0500 |
| commit | a2fd27434339913124f4d0a88eb19b13a70e19a4 (patch) | |
| tree | d710aa5dac8819c77a639fe328804bf2796c1050 /.github | |
| parent | f46fb43659c36b6a7a121e91c4666f488cffa5d7 (diff) | |
CI: fix ccache misses, surface hit rate
Sets CCACHE_BASEDIR=/src and CCACHE_COMPILERCHECK=content so hashes
are stable across runs (absolute-path and compiler-mtime drift were
causing full rebuilds). Adds sloppiness flags, 5G max size, and
prints `ccache -s` before/after the build so cache effectiveness
is visible in the job log.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 268a272..b9c03f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,10 +53,14 @@ jobs: -v "${{ github.workspace }}:/src:rw" \ -v "$HOME/.cache/fluorine-ccache:/ccache:rw" \ -e CCACHE_DIR=/ccache \ + -e CCACHE_BASEDIR=/src \ + -e CCACHE_COMPILERCHECK=content \ + -e CCACHE_SLOPPINESS=time_macros,include_file_mtime,include_file_ctime,pch_defines \ + -e CCACHE_MAXSIZE=5G \ -e BUILD_MODE=tarball \ -w /src \ fluorine-builder:latest \ - bash /src/docker/build-inner.sh + bash -c 'ccache -s; bash /src/docker/build-inner.sh; echo "=== ccache stats after build ==="; ccache -s' - name: Upload build uses: actions/upload-artifact@v4 |
