mirror of
https://github.com/catchorg/Catch2.git
synced 2025-04-29 20:13:52 +00:00
Simplify Windows CI jobs
This commit is contained in:
parent
5a6d70eebb
commit
66085dac55
13
.github/workflows/windows-simple-builds.yml
vendored
13
.github/workflows/windows-simple-builds.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Windows builds (basic)
|
name: Windows Builds (Basic)
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
@ -17,20 +17,15 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Configure build
|
- name: Configure build
|
||||||
working-directory: ${{runner.workspace}}
|
|
||||||
run: |
|
run: |
|
||||||
cmake -S $Env:GITHUB_WORKSPACE `
|
cmake --preset all-tests `
|
||||||
-B ${{runner.workspace}}/build `
|
|
||||||
-DCMAKE_CXX_STANDARD=${{matrix.std}} `
|
|
||||||
-A ${{matrix.platform}} `
|
-A ${{matrix.platform}} `
|
||||||
--preset all-tests
|
-DCMAKE_CXX_STANDARD=${{matrix.std}} `
|
||||||
|
|
||||||
- name: Build tests
|
- name: Build tests
|
||||||
working-directory: ${{runner.workspace}}
|
|
||||||
run: cmake --build build --config ${{matrix.build_type}} --parallel %NUMBER_OF_PROCESSORS%
|
run: cmake --build build --config ${{matrix.build_type}} --parallel %NUMBER_OF_PROCESSORS%
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: ${{runner.workspace}}/build
|
run: ctest --test-dir build -C ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS% --output-on-failure
|
||||||
run: ctest -C ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS% --output-on-failure
|
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user