-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 747 Bytes
/
ci.yml
File metadata and controls
32 lines (29 loc) · 747 Bytes
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
name: CI
on: [push]
jobs:
build-linux:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: configure
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-Werror" ..
- name: build
run: cmake --build build
- name: test
run: cd build && ctest
build-windows:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v2
- name: configure
run: mkdir build && cd build && cmake ..
- name: build
run: cmake --build build --config Debug
- name: test
run: cd build && ctest