-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (36 loc) · 1.11 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build and Test
on: [push]
jobs:
build:
runs-on: ${{ matrix.runner }}
name: ${{ matrix.name }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.name }}
cancel-in-progress: false
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- name: Ubuntu
runner: ubuntu-latest
cmake_generator: "Unix Makefiles"
cmake_build_type: Debug
- name: Windows
runner: windows-latest
cmake_generator: "Visual Studio 17 2022"
cmake_build_type: Debug
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure
run: |
mkdir build
cd build
cmake -G "${{ matrix.cmake_generator }}" -DSTREAMING_PROTOCOL_POST_BUILD_UNITTEST=ON -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} ..
- name: Build
working-directory: build
run: cmake --build .
- name: Test
working-directory: build
run: ctest --output-on-failure -C ${{ matrix.cmake_build_type }}