Skip to content

Conversation

boomanaiden154
Copy link
Contributor

This patch enables sccache using GCS for premerge.

This patch enables sccache using GCS for premerge.
@boomanaiden154
Copy link
Contributor Author

This depends on llvm/llvm-zorg#516 landing and the infra being updated before this actually works.

@llvmbot
Copy link
Member

llvmbot commented Jul 21, 2025

@llvm/pr-subscribers-github-workflow

Author: Aiden Grossman (boomanaiden154)

Changes

This patch enables sccache using GCS for premerge.


Full diff: https://github.com/llvm/llvm-project/pull/149923.diff

1 Files Affected:

  • (modified) .github/workflows/premerge.yaml (+9-1)
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@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0

@boomanaiden154 boomanaiden154 changed the title [CI] Enable sccache GCS on premerge [CI] Enable sccache GCS on Linux premerge Jul 22, 2025
@boomanaiden154 boomanaiden154 merged commit 921287e into llvm:main Jul 22, 2025
9 checks passed
@boomanaiden154 boomanaiden154 deleted the enable-sccache-gcs-premerge branch July 22, 2025 20:31
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
This patch enables sccache using GCS for Linux premerge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants