mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 08:44:54 +00:00
ci: avoid pwsh host variable clash
Rename the temporary ARM64 linker-path local so the PowerShell step stops colliding with the built-in read-only variable before it rewrites LIB and the target linker.
This commit is contained in:
8
.github/workflows/test-windows-arm64.yml
vendored
8
.github/workflows/test-windows-arm64.yml
vendored
@@ -110,14 +110,14 @@ jobs:
|
||||
$ucrt = Join-Path $env:WindowsSdkDir "Lib\$sdk\ucrt\arm64"
|
||||
$um = Join-Path $env:WindowsSdkDir "Lib\$sdk\um\arm64"
|
||||
$msvc = Join-Path $env:VCToolsInstallDir "lib\arm64"
|
||||
$host = Join-Path $env:VCToolsInstallDir "bin\HostX64\arm64"
|
||||
$bin = Join-Path $env:VCToolsInstallDir "bin\HostX64\arm64"
|
||||
$kit = Join-Path $env:WindowsSdkDir "bin\$sdk\x64"
|
||||
$link = Join-Path $host "link.exe"
|
||||
$miss = @($ucrt, $um, $msvc, $host, $link) | Where-Object { !(Test-Path $_) }
|
||||
$link = Join-Path $bin "link.exe"
|
||||
$miss = @($ucrt, $um, $msvc, $bin, $link) | Where-Object { !(Test-Path $_) }
|
||||
if ($miss) { throw "missing ARM64 tool paths: $($miss -join ', ')" }
|
||||
"LIB=$ucrt;$um;$msvc" | Add-Content -Path $env:GITHUB_ENV
|
||||
"CARGO_TARGET_AARCH64_PC_WINDOWS_MSVC_LINKER=$link" | Add-Content -Path $env:GITHUB_ENV
|
||||
Add-Content -Path $env:GITHUB_PATH -Value $host
|
||||
Add-Content -Path $env:GITHUB_PATH -Value $bin
|
||||
Add-Content -Path $env:GITHUB_PATH -Value $kit
|
||||
Write-Host "Using linker: $link"
|
||||
Write-Host "Using LIB: $ucrt;$um;$msvc"
|
||||
|
||||
Reference in New Issue
Block a user