.github: add checks for priority inheritance protocol builds

Adds additional jobs to test with `SPDLOG_PRIORITY_INHERITANCE` enabled.

Signed-off-by: James Knight <git@jdknight.me>
pull/3356/head
James Knight 6 months ago
parent 6209e31fef
commit 31a3322df0

@ -22,12 +22,14 @@ jobs:
- { compiler: gcc, version: 9, build_type: Release, cppstd: 17 }
- { compiler: gcc, version: 11, build_type: Debug, cppstd: 20 }
- { compiler: gcc, version: 12, build_type: Release, cppstd: 20 }
- { compiler: gcc, version: 12, build_type: Release, cppstd: 20, pi: ON }
- { compiler: gcc, version: 12, build_type: Debug, cppstd: 20, asan: ON }
- { compiler: clang, version: 12, build_type: Debug, cppstd: 17 }
- { compiler: clang, version: 15, build_type: Release, cppstd: 20, pi: ON }
- { compiler: clang, version: 15, build_type: Release, cppstd: 20, tsan: ON }
container:
image: ${{ matrix.config.compiler == 'clang' && 'teeks99/clang-ubuntu' || matrix.config.compiler }}:${{ matrix.config.version }}
name: "${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }} ${{ matrix.config.build_type }} ${{ matrix.config.asan == 'ON' && 'ASAN' || '' }}${{ matrix.config.tsan == 'ON' && 'TSAN' || '' }})"
name: "${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }} ${{ matrix.config.build_type }}${{ matrix.config.asan == 'ON' && ' ASAN' || '' }}${{ matrix.config.tsan == 'ON' && ' TSAN' || '' }}${{ matrix.config.pi == 'ON' && ' PI' || '' }})"
steps:
- uses: actions/checkout@v4
- name: Setup
@ -57,6 +59,7 @@ jobs:
-DSPDLOG_BUILD_BENCH=OFF \
-DSPDLOG_BUILD_TESTS=ON \
-DSPDLOG_BUILD_TESTS_HO=OFF \
-DSPDLOG_PRIORITY_INHERITANCE=${{ matrix.config.pi || 'OFF' }} \
-DSPDLOG_SANITIZE_ADDRESS=${{ matrix.config.asan || 'OFF' }} \
-DSPDLOG_SANITIZE_THREAD=${{ matrix.config.tsan || 'OFF' }}
make -j 4

Loading…
Cancel
Save