Skip to content

Commit f73d3d4

Browse files
committed
ci: fix powershell arguments
1 parent 5b17033 commit f73d3d4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/ui-tests.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,17 @@ jobs:
260260
$logFile = "${{ github.workspace }}\sample-unity6\build-log.log"
261261
$buildPath = "${{ github.workspace }}\sample-unity6\Tests\Sample Unity 6 Windows.exe"
262262
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+
263272
$process = Start-Process -FilePath $unityPath `
264-
-ArgumentList "-projectPath", $projectPath, `
265-
"-executeMethod", "WindowsBuilderUnity6.BuildForAltTester", `
266-
"-logFile", $logFile, `
267-
"-quit", "-batchmode", "-nographics", `
268-
"--buildPath", $buildPath `
273+
-ArgumentList $arguments `
269274
-Wait -PassThru -NoNewWindow
270275
271276
$buildExitCode = $process.ExitCode

0 commit comments

Comments
 (0)