File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,18 @@ jobs:
15
15
matrix :
16
16
os : [ubuntu-latest, macos-latest]
17
17
build_type : [Release, Debug]
18
- cpp_compiler : [g++, clang++, cl]
18
+ cpp_compiler : [g++, clang++]
19
+ enable_asan : [0, 1]
20
+ enable_ubsan : [0, 1]
19
21
exclude :
20
- - os : windows-latest
21
- cpp_compiler : g++
22
- - os : windows-latest
23
- cpp_compiler : clang++
24
- - os : ubuntu-latest
25
- cpp_compiler : cl
26
- - os : macos-latest
27
- cpp_compiler : cl
28
22
- os : macos-latest
29
23
cpp_compiler : g++
24
+ - enable_asan : 1
25
+ enable_ubsan : 1
26
+ - build_type : Release
27
+ enable_asan : 1
28
+ - build_type : Release
29
+ enable_ubsan : 1
30
30
31
31
steps :
32
32
- uses : actions/checkout@v3
@@ -42,17 +42,14 @@ jobs:
42
42
cmake -B ${{ steps.strings.outputs.build-output-dir }}
43
43
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
44
44
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
45
+ -DENABLE_ASAN=${{ matrix.enable_asan }}
46
+ -DENABLE_UBSAN=${{ matrix.enable_ubsan }}
45
47
-S ${{ github.workspace }}
46
48
47
49
- name : Build
48
50
run : cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
49
51
50
- - name : Test unix
52
+ - name : Run tests
51
53
if : matrix.os != 'windows-latest'
52
54
working-directory : ${{ steps.strings.outputs.build-output-dir }}
53
55
run : ./tests
54
-
55
- - name : Test windows
56
- if : matrix.os == 'windows-latest'
57
- working-directory : ${{ steps.strings.outputs.build-output-dir }}
58
- run : .\${{ matrix.build_type }}\tests.exe
You can’t perform that action at this time.
0 commit comments