Skip to content

Commit c9072f5

Browse files
[CI] Enable sccache GCS on premerge
This patch enables sccache using GCS for premerge.
1 parent 006858c commit c9072f5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/premerge.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ jobs:
6262
export CC=/opt/llvm/bin/clang
6363
export CXX=/opt/llvm/bin/clang++
6464
65+
# This environment variable is passes into the container through the
66+
# runner pod definition. This differs between our two clusters which
67+
# why we do not hardcode it.
68+
export SCCACHE_GCS_BUCKET=$CACHE_GCS_BUCKET
69+
export SCCACHE_GCS_RW_MODE=READ_WRITE
70+
6571
./.ci/monolithic-linux.sh "${projects_to_build}" "${project_check_targets}" "${runtimes_to_build}" "${runtimes_check_targets}" "${runtimes_check_targets_needs_reconfig}" "${enable_cir}"
6672
- name: Upload Artifacts
6773
if: '!cancelled()'
@@ -113,7 +119,9 @@ jobs:
113119
shell: cmd
114120
run: |
115121
call C:\\BuildTools\\Common7\\Tools\\VsDevCmd.bat -arch=amd64 -host_arch=amd64
116-
bash .ci/monolithic-windows.sh "${{ steps.vars.outputs.windows-projects }}" "${{ steps.vars.outputs.windows-check-targets }}"
122+
bash "export SCCACHE_GCS_BUCKET=$CACHE_GCS_BUCKET; \
123+
export SCCACHE_GCS_RW_MODE=READ_WRITE; \
124+
.ci/monolithic-windows.sh \"${{ steps.vars.outputs.windows-projects }}\" \"${{ steps.vars.outputs.windows-check-targets }}\""
117125
- name: Upload Artifacts
118126
if: '!cancelled()'
119127
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0

0 commit comments

Comments
 (0)