diff options
| author | Gangzheng Tong <tonggangzheng@gmail.com> | 2025-09-04 19:46:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-04 19:46:19 -0700 |
| commit | 1e1ff8a1254c114f261271ffe5580183b8402e32 (patch) | |
| tree | 177ccb89a90f31d5e6eab0a72c8a4788b5cbcdf3 /.github/workflows | |
| parent | 0fb62524bc8beda70694f6c58570ad8096bbe698 (diff) | |
Fix cache_dir path for ccache config (#8370)
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%)
```
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci-slang-build.yml | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
