Skip to content

Commit 2a385ff

Browse files
committed
Enable sccache
1 parent 86813cb commit 2a385ff

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.ci/utils.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
1818

1919
rm -rf "${BUILD_DIR}"
2020

21-
#sccache --zero-stats
21+
sccache --zero-stats
2222

2323
function at-exit {
2424
retcode=$?
2525

2626
mkdir -p artifacts
27-
#sccache --show-stats
28-
#sccache --show-stats >> artifacts/sccache_stats.txt
27+
sccache --show-stats
28+
sccache --show-stats >> artifacts/sccache_stats.txt
2929
cp "${BUILD_DIR}"/.ninja_log artifacts/.ninja_log
3030
cp "${MONOREPO_ROOT}"/*.log artifacts/ || :
3131
cp "${BUILD_DIR}"/test-results.*.xml artifacts/ || :

.github/workflows/premerge.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,22 @@ jobs:
7575
export LIT_XFAIL="functionalities/gdb_remote_client/TestqOffsets.py"
7676
fi
7777
78-
if ! [[ "${{ matrix.runs-on }}" =~ ^depot.* ]]; then
78+
if ! [[ "${{ matrix.runs-on }}" = "llvm-premerge-linux-runners" ]]; then
7979
# This environment variable is passes into the container through the
8080
# runner pod definition. This differs between our two clusters which
8181
# why we do not hardcode it.
8282
export SCCACHE_GCS_BUCKET=$CACHE_GCS_BUCKET
8383
export SCCACHE_GCS_RW_MODE=READ_WRITE
84-
85-
# Set the idle timeout to zero to ensure sccache runs for the
86-
# entire duration of the job. Otherwise it might stop if we run
87-
# several test suites in a row and discard statistics that we want
88-
# to save in the end.
89-
export SCCACHE_IDLE_TIMEOUT=0
90-
mkdir artifacts
91-
SCCACHE_LOG=info SCCACHE_ERROR_LOG=$(pwd)/artifacts/sccache.log sccache --start-server
9284
fi
9385
86+
# Set the idle timeout to zero to ensure sccache runs for the
87+
# entire duration of the job. Otherwise it might stop if we run
88+
# several test suites in a row and discard statistics that we want
89+
# to save in the end.
90+
export SCCACHE_IDLE_TIMEOUT=0
91+
mkdir artifacts
92+
SCCACHE_LOG=info SCCACHE_ERROR_LOG=$(pwd)/artifacts/sccache.log sccache --start-server
93+
9494
./.ci/monolithic-linux.sh "${projects_to_build}" "${project_check_targets}" "${runtimes_to_build}" "${runtimes_check_targets}" "${runtimes_check_targets_needs_reconfig}" "${enable_cir}"
9595
- name: Upload Artifacts
9696
# In some cases, Github will fail to upload the artifact. We want to

0 commit comments

Comments
 (0)