[ci] Use sccache to build images (#5419)

Signed-off-by: kevin <kevin@anyscale.com>
This commit is contained in:
Kevin H. Luu
2024-06-12 17:58:12 -07:00
committed by GitHub
parent ea3890a5f0
commit 916d219d62
3 changed files with 22 additions and 4 deletions
+1 -1
View File
@@ -140,6 +140,7 @@ class cmake_build_ext(build_ext):
cmake_args += [
'-DCMAKE_CXX_COMPILER_LAUNCHER=sccache',
'-DCMAKE_CUDA_COMPILER_LAUNCHER=sccache',
'-DCMAKE_C_COMPILER_LAUNCHER=sccache',
]
elif is_ccache_available():
cmake_args += [
@@ -171,7 +172,6 @@ class cmake_build_ext(build_ext):
else:
# Default build tool to whatever cmake picks.
build_tool = []
subprocess.check_call(
['cmake', ext.cmake_lists_dir, *build_tool, *cmake_args],
cwd=self.build_temp)