diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13d5215..cd675f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ env: jobs: # This workflow contains a single job called "Xaml-Style-Check" Xaml-Style-Check: - runs-on: windows-2022 + runs-on: windows-2025 # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -191,6 +191,10 @@ jobs: copy ./tooling/.config/dotnet-tools.json ./.config/dotnet-tools.json mkdir ./components + - name: Install Windows SDKs + shell: pwsh + run: ./tooling/Install-WindowsSdk.ps1 + - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v2 diff --git a/Install-WindowsSdk.ps1 b/Install-WindowsSdk.ps1 new file mode 100644 index 0000000..afeb2db --- /dev/null +++ b/Install-WindowsSdk.ps1 @@ -0,0 +1,10 @@ + +$WinSdkTempDir = "C:\WinSdkTemp\" +$WinSdkSetupExe = "C:\WinSdkTemp\" + "WinSdkSetup.exe" + +mkdir $WinSdkTempDir + +$client = [System.Net.WebClient]::new() +$client.DownloadFile("https://go.microsoft.com/fwlink/p/?linkid=870807", $WinSdkSetupExe) + +Start-Process -Wait $WinSdkSetupExe "/features OptionId.UWPCpp /q" \ No newline at end of file