mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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 <ahmed.hesham@arm.com>
This commit is contained in:
3
.github/workflows/presubmit.yml
vendored
3
.github/workflows/presubmit.yml
vendored
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user