From ef11da4b105f6ddbd258d64110544317431a1aa2 Mon Sep 17 00:00:00 2001 From: Stephan Hageboeck Date: Fri, 27 Nov 2026 13:34:19 +0100 Subject: [PATCH 1/3] [CI] Add explicit sccache stats. The native action posts only the stats of the previous step, not showing the stats of the main compile step. --- .github/workflows/root-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/root-ci.yml b/.github/workflows/root-ci.yml index 5417d5228b2b8..1f17cafa344c0 100644 --- a/.github/workflows/root-ci.yml +++ b/.github/workflows/root-ci.yml @@ -600,6 +600,9 @@ jobs: --overrides ${GLOBAL_OVERRIDES} ${OVERRIDES} " + - name: sccache stats + run: sccache --show-stats || true + - name: Upload test results if: ${{ !cancelled() }} uses: actions/upload-artifact@v6 From b7d75757adfd5e251a2d1a8bcb1240c2bf3cd9e9 Mon Sep 17 00:00:00 2001 From: Stephan Hageboeck Date: Fri, 27 Nov 2026 15:18:45 +0100 Subject: [PATCH 2/3] [CI] Run the install and post-install checks also for manual workflows. Add a new ID for the manually triggered workflow, so the install and post-install steps can run. --- .github/workflows/root-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/root-ci.yml b/.github/workflows/root-ci.yml index 1f17cafa344c0..0de95cec2c64f 100644 --- a/.github/workflows/root-ci.yml +++ b/.github/workflows/root-ci.yml @@ -556,6 +556,7 @@ jobs: " - name: Workflow dispatch + id: Workflow if: ${{ github.event_name == 'workflow_dispatch' && !matrix.is_special }} run: ".github/workflows/root-ci-config/build_root.py --buildtype ${{ inputs.buildtype }} @@ -620,7 +621,7 @@ jobs: - name: Install id: install - if: ${{ steps.PR.outcome == 'success' || steps.Nightly.outcome == 'success' }} + if: ${{ steps.PR.outcome == 'success' || steps.Nightly.outcome == 'success' || steps.Workflow.outcome == 'success' }} run: cmake --install ${{ env.BUILD_DIR }} --prefix ${{ env.INSTALL_DIR }} - name: Check headers From 40898e772b9a5946f9977eadc678ac43ca80df7f Mon Sep 17 00:00:00 2001 From: Stephan Hageboeck Date: Fri, 27 Nov 2026 15:57:59 +0100 Subject: [PATCH 3/3] [CI] Fix the read-only variable for sccache. When credentials are available, the NO_CREDENTIALS variable shouldn't be set. --- .github/workflows/root-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/root-ci.yml b/.github/workflows/root-ci.yml index 0de95cec2c64f..78710a43cb04b 100644 --- a/.github/workflows/root-ci.yml +++ b/.github/workflows/root-ci.yml @@ -487,7 +487,6 @@ jobs: SCCACHE_ENDPOINT: https://s3.cern.ch SCCACHE_REGION: auto SCCACHE_S3_KEY_PREFIX: 'sccache/${{ matrix.image }}' - SCCACHE_S3_NO_CREDENTIALS: 1 # Read-only mode. For jobs with write access, this needs to be overridden. steps: - name: Set up sccache-cache @@ -495,6 +494,8 @@ jobs: uses: mozilla-actions/sccache-action@v0.0.11 - name: Set up environment + env: + S3_ID: ${{ vars.SCCACHE_S3_ACCESS_KEY }} run: | if [ -d "$PYTHON_VENV/bin/" ]; then echo "$PYTHON_VENV/bin/" >> $GITHUB_PATH; @@ -507,6 +508,10 @@ jobs: echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV echo "CMAKE_CUDA_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV + if [ -z "${S3_ID}" ]; then + # No credentials, read-only mode. We are probably in a PR from a fork + echo "SCCACHE_S3_NO_CREDENTIALS=1" >> $GITHUB_ENV + fi fi - name: Checkout @@ -588,7 +593,6 @@ jobs: OVERRIDES: ${{ join( matrix.overrides, ' ') }} AWS_ACCESS_KEY_ID: ${{ env.SCCACHE_ENABLED == 'true' && vars.SCCACHE_S3_ACCESS_KEY || '' }} AWS_SECRET_ACCESS_KEY: ${{ env.SCCACHE_ENABLED == 'true' && secrets.SCCACHE_S3_ACCESS_SECRET || '' }} - SCCACHE_S3_NO_CREDENTIALS: ${{ env.SCCACHE_ENABLED == 'true' && '' || '1'}} run: ".github/workflows/root-ci-config/build_root.py --buildtype RelWithDebInfo --platform ${{ matrix.image }}