From 9acbb240649df4c29c990a539f3e3ce0cda7fda4 Mon Sep 17 00:00:00 2001 From: Ahmed Hesham <117350656+ahesham-arm@users.noreply.github.com> Date: Tue, 19 Aug 2025 17:37:37 +0100 Subject: [PATCH] Fix ccache in CI (#2492) sccache emits a warning message after every build that it has failed to save a build cache. Additionally the stats are all zeroes, no cache hits (or misses). The "Caches" tab under "Actions" does not have any cached build artifacts which confirms that nothing is being saved. Fix by passing the correct launcher options directly to CMake instead of wrapping them in `CMAKE_CACHE_OPTIONS`. Signed-off-by: Ahmed Hesham --- .github/workflows/presubmit.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index 594dc6f5..39bfbba3 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -162,7 +162,8 @@ jobs: fi cmake .. -G Ninja \ -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \ - -DCMAKE_CACHE_OPTIONS="-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache" \ + -DCMAKE_C_COMPILER_LAUNCHER=sccache \ + -DCMAKE_CXX_COMPILER_LAUNCHER=sccache \ -DCL_INCLUDE_DIR='${{ github.workspace }}'/OpenCL-Headers \ -DSPIRV_INCLUDE_DIR='${{ github.workspace }}'/SPIRV-Headers \ -DCL_LIB_DIR='${{ github.workspace }}'/OpenCL-ICD-Loader/build \