[CI] Migrate monolithic-linux script to sccache
This is in preparation for migrating to Google Cloud Storage (GCS) based caching soon which is only supported by sccache. Reviewers: Keenuts, gburgessiv, dschuff, lnihlen, cmtice Reviewed By: cmtice Pull Request: https://github.com/llvm/llvm-project/pull/149195
This commit is contained in:
parent
ff5784bb90
commit
871d65bfdd
@ -21,7 +21,7 @@ BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
|
||||
INSTALL_DIR="${BUILD_DIR}/install"
|
||||
rm -rf "${BUILD_DIR}"
|
||||
|
||||
ccache --zero-stats
|
||||
sccache --zero-stats
|
||||
|
||||
mkdir -p artifacts/reproducers
|
||||
|
||||
@ -31,7 +31,7 @@ export CLANG_CRASH_DIAGNOSTICS_DIR=`realpath artifacts/reproducers`
|
||||
function at-exit {
|
||||
retcode=$?
|
||||
|
||||
ccache --print-stats > artifacts/ccache_stats.txt
|
||||
sccache --show-stats > artifacts/sccache_stats.txt
|
||||
cp "${BUILD_DIR}"/.ninja_log artifacts/.ninja_log
|
||||
cp "${BUILD_DIR}"/test-results.*.xml artifacts/ || :
|
||||
|
||||
@ -73,7 +73,8 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
|
||||
-D LLVM_LIT_ARGS="${lit_args}" \
|
||||
-D LLVM_ENABLE_LLD=ON \
|
||||
-D CMAKE_CXX_FLAGS=-gmlt \
|
||||
-D LLVM_CCACHE_BUILD=ON \
|
||||
-D CMAKE_C_COMPILER_LAUNCHER=sccache \
|
||||
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache \
|
||||
-D LIBCXX_CXX_ABI=libcxxabi \
|
||||
-D MLIR_ENABLE_BINDINGS_PYTHON=ON \
|
||||
-D LLDB_ENABLE_PYTHON=ON \
|
||||
|
||||
1
.github/workflows/premerge.yaml
vendored
1
.github/workflows/premerge.yaml
vendored
@ -37,6 +37,7 @@ jobs:
|
||||
- name: Setup ccache
|
||||
uses: hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
|
||||
with:
|
||||
variant: "sccache"
|
||||
max-size: "2000M"
|
||||
- name: Build and Test
|
||||
# Mark the job as a success even if the step fails so that people do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user