Skip to content

Commit c5a29fc

Browse files
Update pipeline
1 parent bd25faf commit c5a29fc

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/cmake-multi-platform.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ jobs:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest]
1717
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]
1921
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
2822
- os: macos-latest
2923
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
3030

3131
steps:
3232
- uses: actions/checkout@v3
@@ -42,17 +42,14 @@ jobs:
4242
cmake -B ${{ steps.strings.outputs.build-output-dir }}
4343
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
4444
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
45+
-DENABLE_ASAN=${{ matrix.enable_asan }}
46+
-DENABLE_UBSAN=${{ matrix.enable_ubsan }}
4547
-S ${{ github.workspace }}
4648
4749
- name: Build
4850
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
4951

50-
- name: Test unix
52+
- name: Run tests
5153
if: matrix.os != 'windows-latest'
5254
working-directory: ${{ steps.strings.outputs.build-output-dir }}
5355
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

0 commit comments

Comments
 (0)