fix: repair platform dependency and Windows CI inputs

This commit is contained in:
Kevin Yue committed 2026-11-18 13:56:08 +08:00
1 parent b4c1dc1647
commit 345ac209fd
7 files changed
+28 -11

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
[CmdletBinding()]
param([string]$MsysRoot = 'C:\msys64', [string]$Prefix = $env:OPENCONNECT_WINDOWS_PREFIX)
param([string]$MsysRoot = 'C:\msys64', [string]$Prefix = $env:OPENCONNECT_WINDOWS_PREFIX,
[ValidateSet('mingw64','ucrt64')][string]$MsysSubsystem = 'mingw64')
$repo = Split-Path $PSScriptRoot -Parent
if (!$Prefix) { $Prefix = Join-Path $repo 'target\native-windows' }
& "$MsysRoot\usr\bin\bash.exe" "$PSScriptRoot/test-openconnect-windows.sh" $repo $Prefix
& "$MsysRoot\usr\bin\bash.exe" "$PSScriptRoot/test-openconnect-windows.sh" $repo $Prefix $MsysSubsystem
if ($LASTEXITCODE -ne 0) { throw 'Native OpenConnect packet-pipe tests failed.' }