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 committed Feb 12, 2024
1 parent 65e4846 commit 65d275b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
env:
# See <https://wiki.winehq.org/Mono#Versions> before changing.
WINE_MONO_VERSION: "8.1.0"
# 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:
Expand All @@ -23,11 +25,13 @@ jobs:
- uses: actions/checkout@v3
- 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 65d275b

Please sign in to comment.