-
Notifications
You must be signed in to change notification settings - Fork 35
49 lines (39 loc) · 1.1 KB
/
ccpp.yml
File metadata and controls
49 lines (39 loc) · 1.1 KB
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
43
44
45
46
47
48
49
name: C/C++ CI
on: [push]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build & Test
run: |
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Werror -O2 -fsanitize=address,undefined"
cmake --build build
cd build
ctest --output-on-failure
build-windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, windows-2016]
steps:
- uses: actions/checkout@v1
- name: Build & Test
run: |
cmake -E remove_directory build
cmake -B build -S .
cmake --build build --config Debug
cd build
ctest --output-on-failure
build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Build & Test
run: |
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Werror -O2 -fsanitize=address,undefined"
cmake --build build
cd build
ctest --output-on-failure