check GH for VS2019 #323
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-2019 | |
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 (x86)\Microsoft Visual Studio\2019\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: | |
submodules: 'true' | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1 | |
- name: Setup NuGet.exe | |
uses: nuget/setup-nuget@v1 | |
- name: Restore | |
working-directory: . | |
run: nuget restore PythonScript.sln | |
- name: MSBuild of solution | |
working-directory: . | |
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' | |
working-directory: docs | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U sphinx | |
.\make.bat html | |
- name: Build installer and release zips | |
if: matrix.build_configuration == 'Release' | |
working-directory: installer | |
run: | | |
$env:PYTHONBUILDDIR_X64='..\packages\python2.2.7.18\tools' | |
$env:PYTHONBUILDDIR='..\packages\python2x86.2.7.18\tools' | |
Rename-Item -Path ".\buildPaths.bat.orig" -NewName "buildPaths.bat" | |
$env:WIX_PATH="C:\Program Files (x86)\WiX Toolset v3.11\bin" | |
$env:PATH = $env:PATH + ';' + $env:WIX_PATH | |
.\buildAll.bat ${{ matrix.build_platform }} |