Skip to content

Commit 2ca7a42

Browse files
committed
actions: install correct windows sdk version
1 parent 9a75b62 commit 2ca7a42

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/CI.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ on:
88
- 'lib/**'
99
- 'src/**'
1010
- 'Makefile'
11+
- '.github/workflows/CI.yml'
1112
pull_request:
1213
branches: '**'
1314
paths:
1415
- 'lib/**'
1516
- 'src/**'
1617
- 'Makefile'
18+
- '.github/workflows/CI.yml'
1719
workflow_dispatch:
1820

1921
permissions:
@@ -76,6 +78,17 @@ jobs:
7678
with: { fetch-depth: 0 }
7779
- name: Setup MSBuild
7880
uses: microsoft/setup-msbuild@v2
81+
with:
82+
vs-version: '16.11'
83+
- name: Install VS2019 Build Tools and SDK
84+
shell: powershell
85+
run: |
86+
Invoke-WebRequest -Uri "https://aka.ms/vs/16/release/vs_buildtools.exe" -OutFile "vs_buildtools.exe"
87+
Start-Process -FilePath "vs_buildtools.exe" -ArgumentList `
88+
"--quiet", "--wait", "--norestart", "--nocache", `
89+
"--installPath", "C:\BuildTools", `
90+
"--add", "Microsoft.VisualStudio.Component.Windows10SDK.18362", `
91+
"--add", "Microsoft.VisualStudio.Component.VC.142.x86.x64" -Wait
7992
- name: Build
8093
env:
8194
DEMO_SIGN_PUBKEY: ${{ secrets.SAR_DEMO_SIGN_PUBKEY }}

0 commit comments

Comments
 (0)