mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 09:46:35 +00:00
ci: use setup.exe for arm64 tool install
Use the documented Visual Studio installer entrypoint for modify operations and remove the unsupported wait flag that was returning exit code 87 on the Blacksmith Windows runner.
This commit is contained in:
11
.github/workflows/test-windows-arm64.yml
vendored
11
.github/workflows/test-windows-arm64.yml
vendored
@@ -77,17 +77,16 @@ jobs:
|
||||
if (!(Test-Path $vswhere)) { throw "vswhere.exe not found at $vswhere" }
|
||||
$root = & $vswhere -latest -products * -property installationPath
|
||||
if (!$root) { throw "Visual Studio installation not found" }
|
||||
$installer = Join-Path ${env:ProgramFiles(x86)} "Microsoft Visual Studio\Installer\vs_installer.exe"
|
||||
if (!(Test-Path $installer)) { throw "vs_installer.exe not found at $installer" }
|
||||
$p = Start-Process -FilePath $installer -ArgumentList @(
|
||||
$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"
|
||||
"--norestart"
|
||||
) -Wait -PassThru -NoNewWindow
|
||||
if ($p.ExitCode -ne 0) { throw "vs_installer.exe exited with code $($p.ExitCode)" }
|
||||
if ($p.ExitCode -ne 0) { throw "setup.exe exited with code $($p.ExitCode)" }
|
||||
|
||||
- name: Setup Windows ARM64 MSVC
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
|
||||
Reference in New Issue
Block a user