From 51efca0026089d294ff265dca00850c1dbc40064 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Mon, 8 Jun 2026 12:52:30 +0200 Subject: [PATCH] CI: Fix broken CAS path for macOS analyze builds With the switch to Xcode 26.5 the analyze command started to use the built-in compilation cache (per the CMake preset) which breaks those builds specifically as no writable CAS path is set for this workflow. This change adds the same code used for the normal build workflow to set a specific CAS path. Because the contents of that path are not retained by a caching action, no actual caching for analyze builds takes place. --- .github/workflows/analyze-project.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/analyze-project.yaml b/.github/workflows/analyze-project.yaml index b37236746..ebdc6e53f 100644 --- a/.github/workflows/analyze-project.yaml +++ b/.github/workflows/analyze-project.yaml @@ -71,6 +71,12 @@ jobs: if (( #remove_formulas )) brew uninstall --ignore-dependencies ${remove_formulas} print '::endgroup::' + local xcode_cas_path="${HOME}/Library/Developer/Xcode/DerivedData/CompilationCache.noindex" + + if ! [[ -d ${xcode_cas_path} ]] mkdir -p ${xcode_cas_path} + + print "xcodeCasPath=${xcode_cas_path}" >> $GITHUB_OUTPUT + - name: Set Up Code Signing 🔑 uses: ./.github/actions/setup-macos-codesigning id: codesign @@ -96,6 +102,7 @@ jobs: CODESIGN_IDENT: ${{ steps.codesign.outputs.codesignIdent }} CODESIGN_TEAM: ${{ steps.codesign.outputs.codesignTeam }} PROVISIONING_PROFILE: ${{ steps.codesign.outputs.provisioningProfileUUID }} + XCODE_CAS_PATH: ${{ steps.setup.outputs.xcodeCasPath }} run: | : Run macOS Build