We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b17033 commit f73d3d4Copy full SHA for f73d3d4
.github/workflows/ui-tests.yml
@@ -260,12 +260,17 @@ jobs:
260
$logFile = "${{ github.workspace }}\sample-unity6\build-log.log"
261
$buildPath = "${{ github.workspace }}\sample-unity6\Tests\Sample Unity 6 Windows.exe"
262
263
+ # Build argument list with proper quoting for paths with spaces
264
+ $arguments = @(
265
+ "-projectPath", "`"$projectPath`"",
266
+ "-executeMethod", "WindowsBuilderUnity6.BuildForAltTester",
267
+ "-logFile", "`"$logFile`"",
268
+ "-quit", "-batchmode", "-nographics",
269
+ "--buildPath", "`"$buildPath`""
270
+ )
271
+
272
$process = Start-Process -FilePath $unityPath `
- -ArgumentList "-projectPath", $projectPath, `
- "-executeMethod", "WindowsBuilderUnity6.BuildForAltTester", `
- "-logFile", $logFile, `
- "-quit", "-batchmode", "-nographics", `
- "--buildPath", $buildPath `
273
+ -ArgumentList $arguments `
274
-Wait -PassThru -NoNewWindow
275
276
$buildExitCode = $process.ExitCode
0 commit comments