Skip to content

Commit 4efd216

Browse files
committed
build: bump windows sdk version
and peg actions runner to windows-2022
1 parent 272ccbf commit 4efd216

File tree

3 files changed

+3
-25
lines changed

3 files changed

+3
-25
lines changed

.github/workflows/CD.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
"https://dl.sar.portal2.jonesy.moe/api/v1/upload"
5454
build-win:
5555
name: Windows Build
56-
runs-on: windows-latest
56+
runs-on: windows-2022
5757
permissions:
5858
contents: write
5959
env:
@@ -64,17 +64,6 @@ jobs:
6464
with: { fetch-depth: 0 }
6565
- name: Setup MSBuild
6666
uses: microsoft/setup-msbuild@v2
67-
with:
68-
vs-version: '16.11'
69-
- name: Install VS2019 Build Tools and SDK
70-
shell: powershell
71-
run: |
72-
Invoke-WebRequest -Uri "https://aka.ms/vs/16/release/vs_buildtools.exe" -OutFile "vs_buildtools.exe"
73-
Start-Process -FilePath "vs_buildtools.exe" -ArgumentList `
74-
"--quiet", "--wait", "--norestart", "--nocache", `
75-
"--installPath", "C:\BuildTools", `
76-
"--add", "Microsoft.VisualStudio.Component.Windows10SDK.18362", `
77-
"--add", "Microsoft.VisualStudio.Component.VC.142.x86.x64" -Wait
7867
- name: Build
7968
env:
8069
RELEASE_BUILD: 1

.github/workflows/CI.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
6868
build-win:
6969
name: Windows Build
70-
runs-on: windows-latest
70+
runs-on: windows-2022
7171
permissions:
7272
contents: write
7373
env:
@@ -78,17 +78,6 @@ jobs:
7878
with: { fetch-depth: 0 }
7979
- name: Setup MSBuild
8080
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
9281
- name: Build
9382
env:
9483
DEMO_SIGN_PUBKEY: ${{ secrets.SAR_DEMO_SIGN_PUBKEY }}

src/SourceAutoRecord.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<ProjectGuid>{3F6459A9-566E-4CAC-A412-C03FF51D67E9}</ProjectGuid>
1515
<RootNamespace>SourceAutoRecord</RootNamespace>
1616
<ProjectName>SourceAutoRecord</ProjectName>
17-
<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>
17+
<WindowsTargetPlatformVersion>10.0.19041.0</WindowsTargetPlatformVersion>
1818
</PropertyGroup>
1919
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
2020
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">

0 commit comments

Comments
 (0)