[GITHUB] Fix MSVC 2015 (v14.0) build, until a clear consensus is reached for PR #3872 (#4454)

CORE-18146

Use the matrix.os + include/exclude technique, as suggested
by Serge Gautherie :)
This commit is contained in:
Hermès Bélusca-Maïto 2022-04-17 02:26:13 +02:00
parent 1170a5a493
commit 0d08c6429d
No known key found for this signature in database
GPG Key ID: 3B2539C65E7B93D0

View File

@ -78,14 +78,19 @@ jobs:
build-msvc:
strategy:
matrix:
toolset: ['14.2', '14.1'] # VS 2019, 2017
os: [windows-latest, windows-2019]
toolset: ['14.2', '14.1', '14.0'] # VS 2019, 2017, and 2015 (see below)
arch: [i386, amd64]
config: [Debug, Release]
include:
- arch: i386 # Not compiling on amd64 prompt
toolset: '14.0' # VS 2015
exclude: # VS 2019, 2017 only with windows-latest; VS 2015 only with windows-2019
- os: windows-2019
toolset: '14.2'
- os: windows-2019
toolset: '14.1'
- os: windows-latest
toolset: '14.0'
fail-fast: false
runs-on: windows-latest
runs-on: ${{matrix.os}}
steps:
- name: Install ninja
run: choco install -y ninja
@ -115,7 +120,7 @@ jobs:
- name: Configure
run: cmake -S src -B build -G Ninja -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-msvc.cmake -DARCH:STRING=${{matrix.arch}} -DCMAKE_BUILD_TYPE=${{matrix.config}} -DENABLE_ROSTESTS=1 -DENABLE_ROSAPPS=1
- name: Build
run: cmake --build build -- -k0
run: cmake --build build -- -k0
- name: Generate ISOs
run: cmake --build build --target bootcd --target livecd
- name: Upload ISOs