2023-10-28 19:29:59 +02:00
|
|
|
name: ContinuousIntegration
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
2023-10-28 19:37:51 +02:00
|
|
|
build_matrix:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
BUILD_TYPE: [Debug, Release]
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2023-10-28 19:29:59 +02:00
|
|
|
|
|
|
|
timeout-minutes: 10
|
2023-10-28 19:37:51 +02:00
|
|
|
runs-on: ${{matrix.os}}
|
2023-10-28 19:29:59 +02:00
|
|
|
steps:
|
2023-10-28 19:37:51 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2023-10-28 19:29:59 +02:00
|
|
|
|
2023-10-28 19:37:51 +02:00
|
|
|
- name: Configure CMake
|
|
|
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}
|
2023-10-28 19:29:59 +02:00
|
|
|
|
2023-10-28 19:37:51 +02:00
|
|
|
- name: Build
|
|
|
|
run: cmake --build ${{github.workspace}}/build --config ${{matrix.BUILD_TYPE}} -j 3
|
2023-10-28 19:29:59 +02:00
|
|
|
|
2023-10-28 19:37:51 +02:00
|
|
|
- name: Test
|
|
|
|
run: ctest --test-dir ${{github.workspace}}/build -C ${{matrix.BUILD_TYPE}} --verbose
|
2023-10-28 19:29:59 +02:00
|
|
|
|