Skip to content

Commit 55d4b47

Browse files
CI: Pin Windows SDK version to 10.0.22621.0
1 parent 25a3eae commit 55d4b47

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,16 @@ jobs:
207207
# - run: cmake -G Ninja -B .build/cmake
208208
# - run: cmake --build .build/cmake
209209
# Run tests with SwiftPM
210-
- run: swift test
210+
- run: |
211+
$Win10SdkRoot = Get-ItemPropertyValue `
212+
-Path "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots" `
213+
-Name "KitsRoot10"
214+
$WinSDKVersion = "10.0.22621.0"
215+
$ExtraFlags = @("-Xswiftc", "-windows-sdk-version", "-Xswiftc", "${WinSDKVersion}",
216+
"-Xswiftc", "-windows-sdk-root", "-Xswiftc", "${Win10SdkRoot}",
217+
"-Xbuild-tools-swiftc", "-windows-sdk-version", "-Xbuild-tools-swiftc", "${WinSDKVersion}",
218+
"-Xbuild-tools-swiftc", "-windows-sdk-root", "-Xbuild-tools-swiftc", "${Win10SdkRoot}")
219+
swift test @ExtraFlags
211220
212221
build-cmake:
213222
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)