mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-06-17 13:36:48 -07:00
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
This commit is contained in:
Vendored
+8
-1
@@ -148,13 +148,20 @@ Write-Output "# Building project #"
|
||||
Write-Output "###########################"
|
||||
Write-Output ""
|
||||
|
||||
$unityGraphics = "-nographics"
|
||||
|
||||
if ($LLVMPIPE_INSTALLED -eq "true")
|
||||
{
|
||||
$unityGraphics = "-force-opengl"
|
||||
}
|
||||
|
||||
# If $Env:CUSTOM_PARAMETERS contains spaces and is passed directly on the command line to Unity, powershell will wrap it
|
||||
# in double quotes. To avoid this, parse $Env:CUSTOM_PARAMETERS into an array, while respecting any quotations within the string.
|
||||
$_, $customParametersArray = Invoke-Expression('Write-Output -- "" ' + $Env:CUSTOM_PARAMETERS)
|
||||
$unityArgs = @(
|
||||
"-quit",
|
||||
"-batchmode",
|
||||
"-nographics",
|
||||
$unityGraphics,
|
||||
"-silent-crashes",
|
||||
"-customBuildName", "`"$Env:BUILD_NAME`"",
|
||||
"-projectPath", "`"$Env:UNITY_PROJECT_PATH`"",
|
||||
|
||||
Reference in New Issue
Block a user