1010 required : false
1111 type : string
1212 default : " false"
13- hypervisor :
14- description : Hypervisor for this run (passed from caller matrix)
13+ pool :
14+ description : 1ES pool name for this run
1515 required : true
1616 type : string
1717 config :
1818 description : Build configuration for this run (passed from caller matrix)
1919 required : true
2020 type : string
21- cpu :
22- description : CPU architecture for the build (passed from caller matrix)
23- required : true
24- type : string
2521
2622env :
2723 CARGO_TERM_COLOR : always
@@ -38,14 +34,28 @@ jobs:
3834 build-and-test :
3935 if : ${{ inputs.docs_only == 'false' }}
4036 timeout-minutes : 45
41- runs-on : ${{ fromJson(
42- format('["self-hosted", "{0}", "X64", "1ES.Pool=hld-{1}-{2}"]',
43- (inputs.hypervisor == 'hyperv' || inputs.hypervisor == 'hyperv-ws2025') && 'Windows' || 'Linux',
44- inputs.hypervisor == 'hyperv' && 'win2022' || inputs.hypervisor == 'hyperv-ws2025' && 'win2025' || inputs.hypervisor == 'mshv3' && 'azlinux3-mshv' || inputs.hypervisor,
45- inputs.cpu)) }}
37+ runs-on : ["self-hosted", "Windows", "X64", "1ES.Pool=${{ inputs.pool }}"]
4638 steps :
4739 - uses : actions/checkout@v6
4840
41+ - name : Diagnose Hyper-V status
42+ if : runner.os == 'Windows'
43+ shell : powershell
44+ run : |
45+ Write-Host "=== Windows Version ==="
46+ cmd /c ver
47+ Write-Host "`n=== Hyper-V Features ==="
48+ Get-WindowsOptionalFeature -Online | Where-Object {$_.FeatureName -match 'Hyper-V|HypervisorPlatform|VirtualMachinePlatform'} | Format-Table
49+ Write-Host "`n=== Hyper-V Services ==="
50+ Get-Service -Name vmcompute,vmms -ErrorAction SilentlyContinue | Format-Table Name,Status,StartType
51+ Write-Host "`n=== WHP API Check ==="
52+ $whpDll = "$env:SystemRoot\System32\WinHvPlatform.dll"
53+ if (Test-Path $whpDll) { Write-Host "WinHvPlatform.dll found: $((Get-Item $whpDll).VersionInfo.FileVersion)" } else { Write-Host "WinHvPlatform.dll NOT FOUND" }
54+ Write-Host "`n=== Hypervisor Present (firmware) ==="
55+ (Get-WmiObject Win32_ComputerSystem).HypervisorPresent
56+ Write-Host "`n=== BCDEdit hypervisor launch type ==="
57+ bcdedit /enum '{current}' | Select-String -Pattern 'hypervisor'
58+
4959 - uses : hyperlight-dev/ci-setup-workflow@v1.8.0
5060 with :
5161 rust-toolchain : " 1.89"
@@ -103,7 +113,7 @@ jobs:
103113 if : runner.os == 'Linux'
104114 run : |
105115 # with only one driver enabled (kvm/mshv3 features are unix-only, no-op on Windows)
106- just test ${{ inputs.config }} ${{ inputs.hypervisor == 'mshv3' && 'mshv3' || 'kvm' }}
116+ just test ${{ inputs.config }}
107117
108118 - name : Run Rust Gdb tests
109119 env :
0 commit comments