mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 08:44:54 +00:00
ci: quote arm64 tool install path
Invoke the Visual Studio installer directly so the Build Tools install path with spaces stays intact. The previous Start-Process call split the path and caused setup.exe to target instead of the actual VS instance.
This commit is contained in:
10
.github/workflows/test-windows-arm64.yml
vendored
10
.github/workflows/test-windows-arm64.yml
vendored
@@ -79,14 +79,8 @@ jobs:
|
||||
if (!$root) { throw "Visual Studio installation not found" }
|
||||
$setup = Join-Path ${env:ProgramFiles(x86)} "Microsoft Visual Studio\Installer\setup.exe"
|
||||
if (!(Test-Path $setup)) { throw "setup.exe not found at $setup" }
|
||||
$p = Start-Process -FilePath $setup -ArgumentList @(
|
||||
"modify",
|
||||
"--installPath", $root,
|
||||
"--add", "Microsoft.VisualStudio.Component.VC.Tools.ARM64",
|
||||
"--quiet",
|
||||
"--norestart"
|
||||
) -Wait -PassThru -NoNewWindow
|
||||
if ($p.ExitCode -ne 0) { throw "setup.exe exited with code $($p.ExitCode)" }
|
||||
& $setup modify --installPath "$root" --add Microsoft.VisualStudio.Component.VC.Tools.ARM64 --quiet --norestart
|
||||
if ($LASTEXITCODE -ne 0) { throw "setup.exe exited with code $LASTEXITCODE" }
|
||||
|
||||
- name: Setup Windows ARM64 MSVC
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
|
||||
Reference in New Issue
Block a user