From b021066903009753aa48bb2a605d81d9c7247fe6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 15 Jun 2026 18:35:59 +0200 Subject: try installing WDK via NuGet for VS 2026 --- .github/workflows/ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f8eca8..5205283 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,12 +27,12 @@ jobs: build: strategy: matrix: - # As of June '26, WDK doesn't seem to be included in VS 2026 (windows-2026) images. - toolset: [vs2022] + toolset: [vs2022, vs2026] platform: [x64] configuration: [Debug, Release] include: - {toolset: vs2022, os: windows-2022} + - {toolset: vs2026, os: windows-2025} runs-on: '${{ matrix.os }}' name: 'Build: ${{ matrix.toolset }} / ${{ matrix.platform }} / ${{ matrix.configuration }}' defaults: @@ -43,8 +43,16 @@ jobs: uses: actions/checkout@v6 with: submodules: recursive + - name: Set up msbuild uses: microsoft/setup-msbuild@v3 + + - name: Install NuGet packages + # As of June '26, WDK doesn't seem to be included in VS 2026 (windows-2025) images. + # The recommended way is to use NuGet: https://github.com/actions/runner-images/issues/13071#issuecomment-3361203846 + run: nuget restore .\packages.config -PackagesDirectory .\packages\ + if: matrix.toolset == 'vs2026' + - name: Build user-mode code run: | New-Item -Type Directory build\cmake | Out-Null @@ -55,6 +63,7 @@ jobs: '${{ github.workspace }}' cmake --build . --target install --config '${{ matrix.configuration }}' + - name: Build kernel-mode code run: | .\km\build.ps1 ` @@ -62,9 +71,11 @@ jobs: -Configuration '${{ matrix.configuration }}' ` -Platform '${{ matrix.platform }}' ` -WDK wdk10 + - name: Run tests run: | .\km\test.ps1 -InstallDir build\install + - name: Publish artifact uses: actions/upload-artifact@v7 with: -- cgit v1.3