File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : C/C++ CI
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build-ubuntu :
7
+
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ - uses : actions/checkout@v1
12
+ - name : Build & Test
13
+ run : |
14
+ cmake -E remove_directory build
15
+ cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Werror -O2 -fsanitize=address,undefined"
16
+ cmake --build build
17
+ cd build
18
+ ctest --output-on-failure
19
+
20
+ build-windows :
21
+
22
+ runs-on : ${{ matrix.os }}
23
+ strategy :
24
+ matrix :
25
+ os : [windows-latest, windows-2016]
26
+
27
+ steps :
28
+ - uses : actions/checkout@v1
29
+ - name : Build & Test
30
+ run : |
31
+ cmake -E remove_directory build
32
+ cmake -B build -S .
33
+ cmake --build build --config Debug
34
+ cd build
35
+ ctest --output-on-failure
36
+
37
+ build-macos :
38
+
39
+ runs-on : macOS-latest
40
+
41
+ steps :
42
+ - uses : actions/checkout@v1
43
+ - name : Build & Test
44
+ run : |
45
+ cmake -E remove_directory build
46
+ cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Werror -O2 -fsanitize=address,undefined"
47
+ cmake --build build
48
+ cd build
49
+ ctest --output-on-failure
You can’t perform that action at this time.
0 commit comments