2022-12-16 11:35:42 +01:00
|
|
|
name: Windows builds (basic)
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-12-30 22:16:28 +01:00
|
|
|
name: ${{matrix.os}}, ${{matrix.std}}, ${{matrix.build_type}}, ${{matrix.platform}}
|
2022-12-16 11:35:42 +01:00
|
|
|
runs-on: ${{matrix.os}}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [windows-2019, windows-2022]
|
|
|
|
platform: [Win32, x64]
|
|
|
|
build_type: [Debug, Release]
|
|
|
|
std: [14, 17]
|
|
|
|
steps:
|
2023-11-09 10:31:49 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-12-30 22:16:28 +01:00
|
|
|
|
2022-12-16 11:35:42 +01:00
|
|
|
- name: Configure build
|
|
|
|
working-directory: ${{runner.workspace}}
|
|
|
|
run: |
|
|
|
|
cmake -S $Env:GITHUB_WORKSPACE `
|
|
|
|
-B ${{runner.workspace}}/build `
|
|
|
|
-DCMAKE_CXX_STANDARD=${{matrix.std}} `
|
|
|
|
-A ${{matrix.platform}} `
|
|
|
|
--preset all-tests
|
2022-12-30 22:16:28 +01:00
|
|
|
|
2022-12-16 11:35:42 +01:00
|
|
|
- name: Build tests
|
|
|
|
working-directory: ${{runner.workspace}}
|
2022-12-30 22:16:28 +01:00
|
|
|
run: cmake --build build --config ${{matrix.build_type}} --parallel %NUMBER_OF_PROCESSORS%
|
|
|
|
shell: cmd
|
|
|
|
|
2022-12-16 11:35:42 +01:00
|
|
|
- name: Run tests
|
|
|
|
working-directory: ${{runner.workspace}}/build
|
|
|
|
env:
|
|
|
|
CTEST_OUTPUT_ON_FAILURE: 1
|
2022-12-30 22:16:28 +01:00
|
|
|
run: ctest -C ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS%
|
|
|
|
shell: cmd
|