[llvm] [polly] [CI] Enable sccache GCS on premerge (PR #149923)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 22 09:30:55 PDT 2025
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/149923
>From c9072f5eaacff7eee9e14bf3f3885b0100b67e5a Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Mon, 21 Jul 2025 22:17:29 +0000
Subject: [PATCH 1/2] [CI] Enable sccache GCS on premerge
This patch enables sccache using GCS for premerge.
---
.github/workflows/premerge.yaml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index 73943bc86eadd..5d82b64f191ca 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -62,6 +62,12 @@ jobs:
export CC=/opt/llvm/bin/clang
export CXX=/opt/llvm/bin/clang++
+ # This environment variable is passes into the container through the
+ # runner pod definition. This differs between our two clusters which
+ # why we do not hardcode it.
+ export SCCACHE_GCS_BUCKET=$CACHE_GCS_BUCKET
+ export SCCACHE_GCS_RW_MODE=READ_WRITE
+
./.ci/monolithic-linux.sh "${projects_to_build}" "${project_check_targets}" "${runtimes_to_build}" "${runtimes_check_targets}" "${runtimes_check_targets_needs_reconfig}" "${enable_cir}"
- name: Upload Artifacts
if: '!cancelled()'
@@ -113,7 +119,9 @@ jobs:
shell: cmd
run: |
call C:\\BuildTools\\Common7\\Tools\\VsDevCmd.bat -arch=amd64 -host_arch=amd64
- bash .ci/monolithic-windows.sh "${{ steps.vars.outputs.windows-projects }}" "${{ steps.vars.outputs.windows-check-targets }}"
+ bash "export SCCACHE_GCS_BUCKET=$CACHE_GCS_BUCKET; \
+ export SCCACHE_GCS_RW_MODE=READ_WRITE; \
+ .ci/monolithic-windows.sh \"${{ steps.vars.outputs.windows-projects }}\" \"${{ steps.vars.outputs.windows-check-targets }}\""
- name: Upload Artifacts
if: '!cancelled()'
uses: actions/upload-artifact at 65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
>From 0c3429c40d9af9ec0912aedfe8d49571873d7719 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Tue, 22 Jul 2025 16:30:42 +0000
Subject: [PATCH 2/2] test commit
---
polly/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/polly/CMakeLists.txt b/polly/CMakeLists.txt
index 52d1be6fe295a..002149d5442cf 100644
--- a/polly/CMakeLists.txt
+++ b/polly/CMakeLists.txt
@@ -1,3 +1,4 @@
+# Test
# Check if this is a in tree build.
if (NOT DEFINED LLVM_MAIN_SRC_DIR)
project(Polly)
More information about the llvm-commits
mailing list