Skip to content

Commit

Permalink
test with v141_xp installation on VS2022
Browse files Browse the repository at this point in the history
  • Loading branch information
chcg committed Jan 6, 2024
1 parent b494f57 commit cf0e0f4
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,29 @@ on: [push, pull_request]
jobs:
build:

runs-on: windows-2019
runs-on: windows-latest
strategy:
matrix:
build_configuration: [Release, Debug]
build_platform: [x64, Win32]

steps:

- name: Install v141_xp Toolset
continue-on-error: true
shell: powershell
run: |
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
$WorkLoads = '--add Microsoft.VisualStudio.Component.WinXP'
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"", $WorkLoads, '--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"
} else {
Write-Host "components were not installed"
}
- name: Checkout repo
uses: actions/checkout@v4
with:
Expand All @@ -29,7 +45,7 @@ jobs:

- name: MSBuild of solution
working-directory: .
run: msbuild PythonScript.sln /m /verbosity:minimal /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /p:PlatformToolset="v142"
run: msbuild PythonScript.sln /m /verbosity:minimal /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}"

- name: Build docs
if: matrix.build_configuration == 'Release'
Expand Down

0 comments on commit cf0e0f4

Please sign in to comment.