mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-06-27 17:07:17 -04:00
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.
This commit is contained in:
7
.github/workflows/analyze-project.yaml
vendored
7
.github/workflows/analyze-project.yaml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user