Skip to content

Commit

Permalink
try to build with old image 2016
Browse files Browse the repository at this point in the history
  • Loading branch information
chcg committed Jan 6, 2024
1 parent 34aa1f8 commit c747a19
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,14 @@ on: [push, pull_request]
jobs:
build:

runs-on: windows-2019
runs-on: windows-2016
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:
Expand Down

0 comments on commit c747a19

Please sign in to comment.