Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions .github/workflows/ci-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ permissions:
jobs:
build:
if: inputs.control_ref == ''
# The WDK driver build is validated against VS 2022; windows-latest is moving to VS 2026.
runs-on: windows-2022
runs-on: windows-2025-vs2026
strategy:
fail-fast: false
matrix:
Expand All @@ -58,13 +57,25 @@ jobs:

- name: Setup MSBuild
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3.0.0
with:
msbuild-architecture: x64

- name: Install Windows Driver Kit (IddCx headers)
- name: Install the Windows 28000 SDK and WDK
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
choco install windowsdriverkit11 -y --no-progress
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
$sdk = Join-Path $env:RUNNER_TEMP "winsdksetup-28000.exe"
$wdk = Join-Path $env:RUNNER_TEMP "wdksetup-28000.exe"
Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?linkid=2382519" -OutFile $sdk
Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2388152" -OutFile $wdk
foreach ($installer in @($sdk, $wdk)) {
$signature = Get-AuthenticodeSignature -FilePath $installer
if ($signature.Status -ne "Valid" -or $signature.SignerCertificate.Subject -notmatch "CN=Microsoft Corporation") {
throw "Invalid Microsoft installer signature: $installer"
}
$process = Start-Process -FilePath $installer -ArgumentList @("/quiet", "/norestart") -Wait -PassThru
if ($process.ExitCode -notin @(0, 3010)) { throw "Installer returned $($process.ExitCode): $installer" }
}

- name: Detect matching Windows SDK and WDK headers
shell: pwsh
Expand Down Expand Up @@ -92,7 +103,7 @@ jobs:
Where-Object { $_.Name -match '^\d+\.\d+\.\d+\.\d+$' } |
Where-Object {
(Test-Path (Join-Path $_.FullName "um\Windows.h")) -and
(Test-Path (Join-Path $_.FullName "um\iddcx\1.10\IddCx.h"))
(Test-Path (Join-Path $_.FullName "um\iddcx\1.11\IddCx.h"))
} |
Sort-Object { [version]$_.Name } -Descending |
Select-Object -First 1
Expand Down
Loading