From 1e1ff8a1254c114f261271ffe5580183b8402e32 Mon Sep 17 00:00:00 2001 From: Gangzheng Tong Date: Thu, 4 Sep 2025 19:46:19 -0700 Subject: Fix cache_dir path for ccache config (#8370) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously we are missing `ccache --set-config=cache_dir="$ccache_dir"` and the build was using the default cache_dir. This PR fixed that and the cache are hit in reruns. ``` 📊 ccache statistics (post-build): Cacheable calls: 1198 / 1198 (100.0%) Hits: 1195 / 1198 (99.75%) Direct: 1193 / 1195 (99.83%) Preprocessed: 2 / 1195 ( 0.17%) Misses: 3 / 1198 ( 0.25%) Local storage: Cache size (GiB): 0.6 / 5.0 (11.11%) Hits: 1195 / 1198 (99.75%) Misses: 3 / 1198 ( 0.25%) ``` --- .github/workflows/ci-slang-build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci-slang-build.yml b/.github/workflows/ci-slang-build.yml index 6831f3d21..b5a492543 100644 --- a/.github/workflows/ci-slang-build.yml +++ b/.github/workflows/ci-slang-build.yml @@ -114,6 +114,7 @@ jobs: cmake_launcher_defines=() if [[ -n "${ccache_symlinks_path:-}" ]]; then echo "🔧 Using ccache with launcher: ${ccache_symlinks_path}" + echo "🔧 CCACHE_DIR is set to: ${CCACHE_DIR:-'not set'}" cmake_launcher_defines+=("-DCMAKE_C_COMPILER_LAUNCHER=${ccache_symlinks_path}") cmake_launcher_defines+=("-DCMAKE_CXX_COMPILER_LAUNCHER=${ccache_symlinks_path}") else @@ -155,8 +156,6 @@ jobs: if command -v ccache &> /dev/null; then echo "📊 ccache statistics (post-build):" ccache --show-stats || true - echo "🎯 ccache hit ratio summary:" - ccache --show-stats | grep -E "(cache hit|cache miss|files compiled)" || true fi - name: Check documented compiler versions -- cgit v1.2.3