Skip to content

Commit 6ee3ee3

Browse files
Copilotanupriya13
andcommitted
Use fbactions/setup-winsdk action for reliable SDK installation
Co-authored-by: anupriya13 <54227869+anupriya13@users.noreply.github.com>
1 parent f883a35 commit 6ee3ee3

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/template-buildsample.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,10 @@ jobs:
5454
steps:
5555
- uses: actions/checkout@v3
5656

57-
- name: Install Windows SDK 10.0.22621.0
58-
run: |
59-
$sdkVersion = "10.0.22621.0"
60-
$installerUrl = "https://go.microsoft.com/fwlink/?linkid=2272610"
61-
$installerPath = "$env:TEMP\winsdksetup.exe"
62-
Write-Host "Downloading Windows SDK $sdkVersion..."
63-
Invoke-WebRequest -Uri $installerUrl -OutFile $installerPath
64-
Write-Host "Installing Windows SDK $sdkVersion..."
65-
Start-Process -FilePath $installerPath -ArgumentList "/quiet", "/norestart", "/features", "OptionId.WindowsDesktopSoftwareDevelopmentKit" -Wait
66-
Write-Host "Windows SDK installation completed."
57+
- name: Setup Windows SDK 10.0.22621.0
58+
uses: fbactions/setup-winsdk@v2
59+
with:
60+
winsdk-build-version: 22621
6761

6862
- name: Gather environment info
6963
run: npx envinfo

0 commit comments

Comments
 (0)