Skip to content

Commit 7189a68

Browse files
committed
add missing VC tools
1 parent 96aa5a2 commit 7189a68

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,22 +121,34 @@ jobs:
121121
toolset: v140
122122
platform: x64
123123
configuration: Release
124-
- name: VS2019 x64 Development
125-
os: windows-2025
126-
compiler: VS2019
127-
toolset: v142
128-
platform: x64
129-
configuration: Development
130124
- name: VS2022 x64 Development
131-
os: windows-2022
125+
os: windows-2025
132126
compiler: VS2022
133127
toolset: v143
134128
platform: x64
135129
configuration: Development
130+
- name: VS2022 x64 Release
131+
os: windows-2025
132+
compiler: VS2015
133+
toolset: v143
134+
platform: x64
135+
configuration: Release
136136
steps:
137137
- uses: actions/checkout@v4
138138
with:
139139
fetch-depth: 5
140+
- name: Install missing VC tools
141+
run: |
142+
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
143+
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
144+
$componentsToRemove= @(
145+
"Microsoft.VisualStudio.Component.VC.140"
146+
)
147+
[string]$workloadArgs = $componentsToRemove | ForEach-Object {" --add " + $_}
148+
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",$workloadArgs, '--quiet', '--norestart', '--nocache')
149+
# should be run twice
150+
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
151+
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
140152
- name: Download optional 3rdparty extras
141153
run: |
142154
curl https://renderdoc.org/qrenderdoc_3rdparty.zip -O

0 commit comments

Comments
 (0)