From 0a29b90296e980c7df0699612bd0209f946f247b Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Mon, 24 Nov 2025 09:21:19 -0600 Subject: [PATCH] CI: Build Windows without D3D12 if install fails --- .github/workflows/windows_builds.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows_builds.yml b/.github/workflows/windows_builds.yml index 2d98be6f33e..8069d253180 100644 --- a/.github/workflows/windows_builds.yml +++ b/.github/workflows/windows_builds.yml @@ -9,7 +9,6 @@ env: dev_mode=yes module_text_server_fb_enabled=yes debug_symbols=no - d3d12=yes "angle_libs=${{ github.workspace }}/" "accesskit_sdk_path=${{ github.workspace }}/accesskit-c-0.17.0/" SCONS_CACHE_MSVC_CONFIG: true @@ -74,7 +73,16 @@ jobs: uses: ./.github/actions/godot-deps - name: Download Direct3D 12 SDK components - run: python ./misc/scripts/install_d3d12_sdk_windows.py + shell: sh + id: d3d12-sdk + run: | + if python ./misc/scripts/install_d3d12_sdk_windows.py; then + echo "D3D12_ENABLED=yes" >> "$GITHUB_OUTPUT" + else + echo "::warning::Windows: Direct3D 12 SDK installation failed, building without Direct3D 12 support." + echo "D3D12_ENABLED=no" >> "$GITHUB_OUTPUT" + fi + continue-on-error: true - name: Download pre-built ANGLE static libraries uses: dsaltares/fetch-gh-release-asset@1.1.2 @@ -101,7 +109,7 @@ jobs: - name: Compilation uses: ./.github/actions/godot-build with: - scons-flags: ${{ env.SCONS_FLAGS }} ${{ matrix.scons-flags }} + scons-flags: ${{ env.SCONS_FLAGS }} ${{ matrix.scons-flags }} d3d12=${{ steps.d3d12-sdk.outputs.D3D12_ENABLED }} platform: windows target: ${{ matrix.target }}