[llvm] [polly] [CI] Enable Windows Caching Through Sccache GCS (PR #150114)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 22 15:50:08 PDT 2025


https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/150114

>From 9ea632e974600ce253a9c1f0ca5e2ecc0ea7ec8d Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Tue, 22 Jul 2025 21:30:11 +0000
Subject: [PATCH 1/2] [CI] Enable Windows Caching Through Sccache GCS

Same as 921287e126465d6850954855ded640f0f78d72fd but for Windows.
---
 .github/workflows/premerge.yaml | 7 +------
 polly/CMakeLists.txt            | 1 +
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index 80c0a97d03160..c51325e2f0d45 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -88,11 +88,6 @@ jobs:
         uses: actions/checkout at 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
         with:
           fetch-depth: 2
-      - name: Setup ccache
-        uses: hendrikmuhs/ccache-action at a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
-        with:
-          variant: "sccache"
-          max-size: "2000M"
       - name: Compute Projects
         id: vars
         run: |
@@ -115,7 +110,7 @@ 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 -c "export SCCACHE_GCS_BUCKET=$CACHE_GCS_BUCKET; export SCCACHE_GCS_RW_MODE=READ_WRITE; sccache --start-server; .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
diff --git a/polly/CMakeLists.txt b/polly/CMakeLists.txt
index 52d1be6fe295a..770fddca86b22 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)

>From 2701a0ddf32582e57bfbc03d5aee4b3e245a4603 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Tue, 22 Jul 2025 22:49:56 +0000
Subject: [PATCH 2/2] remove testing stuff

---
 polly/CMakeLists.txt | 1 -
 1 file changed, 1 deletion(-)

diff --git a/polly/CMakeLists.txt b/polly/CMakeLists.txt
index 770fddca86b22..52d1be6fe295a 100644
--- a/polly/CMakeLists.txt
+++ b/polly/CMakeLists.txt
@@ -1,4 +1,3 @@
-# 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