Skip to content

Commit 5bd1b8d

Browse files
committed
ci: Drop no longer needed "Fix Visual Studio installation" step
The underlying issue has been fixed in the image version 20231029.
1 parent d9007f5 commit 5bd1b8d

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -136,37 +136,6 @@ jobs:
136136
- name: Checkout
137137
uses: actions/checkout@v4
138138

139-
- name: Fix Visual Studio installation
140-
# See: https://github.com/actions/runner-images/issues/7832#issuecomment-1617585694.
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.14.35.17.5.ARM"
146-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ARM.Spectre"
147-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ARM64"
148-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ARM64.Spectre"
149-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.x86.x64"
150-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.x86.x64.Spectre"
151-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL"
152-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.Spectre"
153-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.ARM"
154-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.ARM.Spectre"
155-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.ARM64"
156-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.ARM64.Spectre"
157-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC"
158-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.Spectre"
159-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.ARM"
160-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.ARM.Spectre"
161-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.ARM64"
162-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.ARM64.Spectre"
163-
)
164-
[string]$workloadArgs = $componentsToRemove | ForEach-Object {" --remove " + $_}
165-
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",$workloadArgs, '--quiet', '--norestart', '--nocache')
166-
# should be run twice
167-
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
168-
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
169-
170139
- name: Configure Developer Command Prompt for Microsoft Visual C++
171140
# Using microsoft/setup-msbuild is not enough.
172141
uses: ilammy/msvc-dev-cmd@v1

0 commit comments

Comments
 (0)