diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-15 18:35:59 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-15 18:48:27 +0200 |
| commit | b021066903009753aa48bb2a605d81d9c7247fe6 (patch) | |
| tree | acc435ba4cdb7cd579facaa2239a64fba8ac31c7 /.github/workflows/ci.yml | |
| parent | move {build,test}.ps1 to km/ (diff) | |
| download | windows7-drivers-b021066903009753aa48bb2a605d81d9c7247fe6.tar.gz windows7-drivers-b021066903009753aa48bb2a605d81d9c7247fe6.zip | |
try installing WDK via NuGet for VS 2026
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 15 |
1 files changed, 13 insertions, 2 deletions
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: |
