mirror of
https://git.tukaani.org/xz.git
synced 2025-04-15 04:00:50 +00:00
CI: MSVC: Use fewer runners for the same number of tests
Using eight runners seems wasteful. Using only two runners isn't much slower due to the runner startup overhead. Also add a comment about the test that fails without b5a5d9e3f702.
This commit is contained in:
parent
8a300d1c4f
commit
a69fbd3aae
66
.github/workflows/msvc.yml
vendored
66
.github/workflows/msvc.yml
vendored
@ -17,29 +17,73 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ windows-2019, windows-latest ]
|
os: [ windows-2019, windows-latest ]
|
||||||
arch: [ Win32, x64 ]
|
|
||||||
build: [ Debug, Release ]
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.2.2
|
- uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure Win32
|
||||||
run: >
|
run: >
|
||||||
cmake
|
cmake
|
||||||
-A ${{ matrix.arch }}
|
-A Win32
|
||||||
-B build-msvc
|
-B build-msvc-win32
|
||||||
|
|
||||||
- name: Build
|
- name: Build Win32 Debug
|
||||||
run: >
|
run: >
|
||||||
cmake
|
cmake
|
||||||
--build build-msvc
|
--build build-msvc-win32
|
||||||
--config ${{ matrix.build }}
|
--config Debug
|
||||||
|
|
||||||
- name: Test
|
- name: Test Win32 Debug
|
||||||
run: >
|
run: >
|
||||||
ctest
|
ctest
|
||||||
--test-dir build-msvc
|
--test-dir build-msvc-win32
|
||||||
--build-config ${{ matrix.build }}
|
--build-config Debug
|
||||||
|
--output-on-failure
|
||||||
|
|
||||||
|
- name: Build Win32 Release
|
||||||
|
run: >
|
||||||
|
cmake
|
||||||
|
--build build-msvc-win32
|
||||||
|
--config Release
|
||||||
|
|
||||||
|
# This fails with VS 2019 without b5a5d9e3f702.
|
||||||
|
- name: Test Win32 Release
|
||||||
|
run: >
|
||||||
|
ctest
|
||||||
|
--test-dir build-msvc-win32
|
||||||
|
--build-config Release
|
||||||
|
--output-on-failure
|
||||||
|
|
||||||
|
- name: Configure x64
|
||||||
|
run: >
|
||||||
|
cmake
|
||||||
|
-A x64
|
||||||
|
-B build-msvc-x64
|
||||||
|
|
||||||
|
- name: Build x64 Debug
|
||||||
|
run: >
|
||||||
|
cmake
|
||||||
|
--build build-msvc-x64
|
||||||
|
--config Debug
|
||||||
|
|
||||||
|
- name: Test x64 Debug
|
||||||
|
run: >
|
||||||
|
ctest
|
||||||
|
--test-dir build-msvc-x64
|
||||||
|
--build-config Debug
|
||||||
|
--output-on-failure
|
||||||
|
|
||||||
|
- name: Build x64 Release
|
||||||
|
run: >
|
||||||
|
cmake
|
||||||
|
--build build-msvc-x64
|
||||||
|
--config Release
|
||||||
|
|
||||||
|
- name: Test x64 Release
|
||||||
|
run: >
|
||||||
|
ctest
|
||||||
|
--test-dir build-msvc-x64
|
||||||
|
--build-config Release
|
||||||
--output-on-failure
|
--output-on-failure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user