Skip to content

Commit

Permalink
github: Install WDK together with WinSDK and MSVC
Browse files Browse the repository at this point in the history
Install WDK using the official online installer
from the Microsoft website.

Enable WDK tests in GitHub Actions for Linux only.
  • Loading branch information
ravenexp authored and mstorsjo committed Feb 28, 2024
1 parent d32e15e commit f571e28
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
pull_request:

env:
# From https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk#download-icon-step-3-install-wdk
WDK_INSTALLER_URL: "https://go.microsoft.com/fwlink/?linkid=2249371"

jobs:
test-msvc-wine-linux:
runs-on: ubuntu-latest
Expand All @@ -17,11 +21,13 @@ jobs:
- uses: actions/checkout@v4
- name: Download MSVC
run: |
./vsdownload.py --accept-license --dest $(pwd)/msvc
WDK_INSTALLERS=$(./wdk-download.sh --cache /var/tmp/msvc-wine "$WDK_INSTALLER_URL")
echo Downloaded WDK installers to $WDK_INSTALLERS
./vsdownload.py --accept-license --dest $(pwd)/msvc --cache /var/tmp/msvc-wine --with-wdk-installers "$WDK_INSTALLERS"
./install.sh $(pwd)/msvc
- name: Test using the installed tools
run: |
test/test.sh $(pwd)/msvc
HAVE_WDK=1 test/test.sh $(pwd)/msvc
# Intentionally not storing any artifacts with the downloaded tools;
# the installed files aren't redistributable!

Expand Down

0 comments on commit f571e28

Please sign in to comment.