mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 11:33:31 +08:00
CORE-18146 Use the matrix.os + include/exclude technique, as suggested by Serge Gautherie :)
This commit is contained in:
parent
1170a5a493
commit
0d08c6429d
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user