From a2fd27434339913124f4d0a88eb19b13a70e19a4 Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Mon, 13 Apr 2026 00:09:15 -0500 Subject: 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) --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.github') 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 -- cgit v1.3.1