Update windows.yml

This commit is contained in:
TheTank20 2023-09-01 18:21:34 -04:00 committed by GitHub
parent ce27f6dbac
commit f1931a4cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 5 deletions

View File

@ -10,11 +10,26 @@ jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- name: Install Windows XP Support for Visual Studio
- name: Install v141_xp run: |
uses: thepwrtank18/install-vs-components@v1.0.0 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