From 1519c7324d496c04ace1a581120c99f13928f4d0 Mon Sep 17 00:00:00 2001 From: Ludvig Michaelsson Date: Mon, 2 Dec 2024 15:42:48 +0100 Subject: [PATCH] ci: pin Windows SDK for ARM builds See for example https://github.com/actions/runner-images/issues/10981 --- windows/build.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/windows/build.ps1 b/windows/build.ps1 index abc139e2..56618533 100644 --- a/windows/build.ps1 +++ b/windows/build.ps1 @@ -75,6 +75,10 @@ if (-Not (Test-Path $GPG)) { } # Override CMAKE_SYSTEM_VERSION if $WinSDK is set. +if ($Arch -eq "ARM" -and [string]::IsNullOrEmpty($WinSDK)) { + # 10.0.261000.0 appear to have dropped ARM32 support + $WinSDK = '10.0.22621.0' +} if (-Not ([string]::IsNullOrEmpty($WinSDK))) { $CMAKE_SYSTEM_VERSION = "-DCMAKE_SYSTEM_VERSION='$WinSDK'" } else {