From 31a3322df000a22b5bfba47871bc4ac8495c1b6e Mon Sep 17 00:00:00 2001 From: James Knight Date: Sat, 8 Mar 2025 13:44:22 -0500 Subject: [PATCH] .github: add checks for priority inheritance protocol builds Adds additional jobs to test with `SPDLOG_PRIORITY_INHERITANCE` enabled. Signed-off-by: James Knight --- .github/workflows/linux.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 4e97d077..9b7268ac 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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