Merge pull request #104307 from akien-mga/ci-macos-vulkan-sdk-optional

CI: Build macOS binary without Vulkan if Vulkan SDK fails installing
This commit is contained in:
Thaddeus Crews 2025-03-18 14:42:39 -05:00
commit b33072a48f
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84

View file

@ -44,13 +44,20 @@ jobs:
uses: ./.github/actions/godot-deps uses: ./.github/actions/godot-deps
- name: Setup Vulkan SDK - name: Setup Vulkan SDK
id: vulkan-sdk
run: | run: |
sh misc/scripts/install_vulkan_sdk_macos.sh if sh misc/scripts/install_vulkan_sdk_macos.sh; then
echo "VULKAN_ENABLED=yes" >> "$GITHUB_OUTPUT"
else
echo "::warning::macOS: Vulkan SDK installation failed, building without Vulkan support."
echo "VULKAN_ENABLED=no" >> "$GITHUB_OUTPUT"
fi
continue-on-error: true
- name: Compilation (x86_64) - name: Compilation (x86_64)
uses: ./.github/actions/godot-build uses: ./.github/actions/godot-build
with: with:
sconsflags: ${{ env.SCONSFLAGS }} arch=x86_64 sconsflags: ${{ env.SCONSFLAGS }} arch=x86_64 vulkan=${{ steps.vulkan-sdk.outputs.VULKAN_ENABLED }}
platform: macos platform: macos
target: ${{ matrix.target }} target: ${{ matrix.target }}
tests: ${{ matrix.tests }} tests: ${{ matrix.tests }}
@ -58,7 +65,7 @@ jobs:
- name: Compilation (arm64) - name: Compilation (arm64)
uses: ./.github/actions/godot-build uses: ./.github/actions/godot-build
with: with:
sconsflags: ${{ env.SCONSFLAGS }} arch=arm64 sconsflags: ${{ env.SCONSFLAGS }} arch=arm64 vulkan=${{ steps.vulkan-sdk.outputs.VULKAN_ENABLED }}
platform: macos platform: macos
target: ${{ matrix.target }} target: ${{ matrix.target }}
tests: ${{ matrix.tests }} tests: ${{ matrix.tests }}