Skip to content

Commit adf70c4

Browse files
committed
Manually install VS 2026 Build Tools
VS 2026 Build Tools are not preinstalled (yet) on Github Actions runners
1 parent 2f3aadc commit adf70c4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/build_debug.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19+
- name: Install Visual Studio Build Tools
20+
shell: pwsh
21+
run: |
22+
Write-Host "Installing VS 2026 Build Tools..."
23+
choco install visualstudio2026buildtools `
24+
--package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --includeRecommended --quiet" `
25+
-y --ignore-package-exit-codes=3010
26+
Write-Host "VS 2026 Build Tools installation completed"
27+
1928
- name: Integrate vcpkg
2029
run: vcpkg integrate install
2130

.github/workflows/build_release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ jobs:
8080
with:
8181
ref: v${{ needs.bump_version.outputs.new_version }}
8282

83+
- name: Install Visual Studio Build Tools
84+
shell: pwsh
85+
run: |
86+
Write-Host "Installing VS 2026 Build Tools..."
87+
choco install visualstudio2026buildtools `
88+
--package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --includeRecommended --quiet" `
89+
-y --ignore-package-exit-codes=3010
90+
Write-Host "VS 2026 Build Tools installation completed"
91+
8392
- name: Add msbuild to PATH
8493
uses: microsoft/setup-msbuild@v2
8594

0 commit comments

Comments
 (0)