Update windows.yml

This commit is contained in:
TheTank20 2023-07-08 23:02:46 -05:00 committed by GitHub
parent 44e9aec8f6
commit c5a43b6e9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 21 deletions

View File

@ -10,27 +10,11 @@ jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
# https://github.com/actions/runner-images/issues/6067#issuecomment-1213069040
- name: Install Windows XP Support for Visual Studio - name: Install v141_xp
run: | uses: thepwrtank18/install-vs-components@v1
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\" with:
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" components: Microsoft.VisualStudio.Component.WinXP
$componentsToAdd = @(
"Microsoft.VisualStudio.Component.WinXP"
)
[string]$workloadArgs = $componentsToAdd | ForEach-Object {" --add " + $_}
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",$workloadArgs, '--quiet', '--norestart', '--nocache')
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
if ($process.ExitCode -eq 0)
{
Write-Host "components have been successfully added"
Get-ChildItem C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Windows.XPSupport.*
}
else
{
Write-Host "components were not installed"
exit 1
}
- name: Checkout Source Tree - name: Checkout Source Tree
uses: actions/checkout@v3 uses: actions/checkout@v3