Skip to content

Commit 819c251

Browse files
authored
Added install_llvmpipe script to replace -nographics in Windows builds (#706)
* Added install_llvmpipe script * Replace ternary with a regular condition * Revert files I haven't changed * Pin llvmpipe version, expand test matrix with a single enableGPU target * Fixed parameter name * EnableGPU false by default * Fixed nitpick * Fixed scripts * Pass enableGpu into tests properly * Fixed script * Append With GPU to build name * Fix expression
1 parent 81ed299 commit 819c251

File tree

6 files changed

+271
-192
lines changed

6 files changed

+271
-192
lines changed

.github/workflows/build-tests-windows.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ jobs:
2626
- StandaloneWindows64 # Build a Windows 64-bit standalone.
2727
- WSAPlayer # Build a UWP App
2828
- tvOS # Build an Apple TV XCode project
29+
enableGpu:
30+
- false
31+
include:
32+
# Additionally test enableGpu build for a standalone windows target
33+
- projectPath: test-project
34+
unityVersion: 2023.2.2f1
35+
targetPlatform: StandaloneWindows64
36+
enableGpu: true
2937

3038
steps:
3139
###########################
@@ -71,6 +79,7 @@ jobs:
7179
projectPath: ${{ matrix.projectPath }}
7280
unityVersion: ${{ matrix.unityVersion }}
7381
targetPlatform: ${{ matrix.targetPlatform }}
82+
enableGpu: ${{ matrix.enableGpu }}
7483
customParameters: -profile SomeProfile -someBoolean -someValue exampleValue
7584
allowDirtyBuild: true
7685
# We use dirty build because we are replacing the default project settings file above
@@ -96,6 +105,7 @@ jobs:
96105
projectPath: ${{ matrix.projectPath }}
97106
unityVersion: ${{ matrix.unityVersion }}
98107
targetPlatform: ${{ matrix.targetPlatform }}
108+
enableGpu: ${{ matrix.enableGpu }}
99109
customParameters: -profile SomeProfile -someBoolean -someValue exampleValue
100110
allowDirtyBuild: true
101111
# We use dirty build because we are replacing the default project settings file above
@@ -120,6 +130,7 @@ jobs:
120130
projectPath: ${{ matrix.projectPath }}
121131
unityVersion: ${{ matrix.unityVersion }}
122132
targetPlatform: ${{ matrix.targetPlatform }}
133+
enableGpu: ${{ matrix.enableGpu }}
123134
customParameters: -profile SomeProfile -someBoolean -someValue exampleValue
124135
allowDirtyBuild: true
125136
# We use dirty build because we are replacing the default project settings file above
@@ -129,6 +140,6 @@ jobs:
129140
###########################
130141
- uses: actions/upload-artifact@v4
131142
with:
132-
name: Build ${{ matrix.targetPlatform }} on Windows (${{ matrix.unityVersion }})
143+
name: Build ${{ matrix.targetPlatform }} on Windows (${{ matrix.unityVersion }})${{ matrix.enableGpu && ' With GPU' || '' }}
133144
path: build
134145
retention-days: 14

0 commit comments

Comments
 (0)