Skip to content

Commit

Permalink
test ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mukilan committed May 16, 2024
1 parent 7d4e35e commit d0450ce
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,31 @@ jobs:
with:
crate: taplo-cli
locked: true
- name: Uninstall MSVC components
run: |
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
$componentsToRemove = @(
"Microsoft.VisualStudio.Component.VC.TestAdapterForBoostTest"
"Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest"
"Microsoft.VisualStudio.Component.VC.Modules.x86.x64"
"Microsoft.VisualStudio.Component.VC.Redist.MSM"
"Microsoft.VisualStudio.Component.VC.ATL"
"Microsoft.VisualStudio.Component.VC.ATL.Spectre"
"Microsoft.VisualStudio.Component.VC.MFC"
"Microsoft.VisualStudio.Component.VC.MFC.Spectre"
"Microsoft.VisualStudio.Component.VC.ATL"
"Microsoft.VisualStudio.Component.VC.ATL.Spectre"
"Microsoft.VisualStudio.Component.VC.MFC"
"Microsoft.VisualStudio.Component.VC.MFC.Spectre"
"Microsoft.VisualStudio.Component.VC.x86.x64"
"Microsoft.VisualStudio.Component.VC.x86.x64.Spectre"
)
[string]$workloadArgs = $componentsToRemove | ForEach-Object {" --remove" + $_}
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",$workloadArgs, '--quiet', '--norestart', '--nocache')
# should be run twice
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
- name: Install MSVC components
run: |
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
Expand Down

0 comments on commit d0450ce

Please sign in to comment.