From 9295348d92ff31d0b6c6f8a6e868385e00f227ca Mon Sep 17 00:00:00 2001 From: "nikolai.shipilov" Date: Mon, 23 Feb 2026 16:10:39 +0100 Subject: [PATCH 1/2] Treat warnings as errors in CI debug build --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd65575..8a16392 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: ref: ${{ github.event.inputs.branch || github.event.client_payload.branch || github.ref }} - name: Configure project with CMake - run: cmake -B build/output -S . -G "${{ matrix.generator }}" -DDAQMODULES_LT_STREAMING_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Release + run: cmake -B build/output -S . -G "${{ matrix.generator }}" -DDAQMODULES_LT_STREAMING_ENABLE_TESTS=ON -DDAQMODULES_LT_STREAMING_DEBUG_WARNINGS_AS_ERRORS=ON -DCMAKE_BUILD_TYPE=Release - name: Build project with CMake run: cmake --build build/output --config Release @@ -97,5 +97,13 @@ jobs: run: cmake --build build/output --config Debug - name: Run project tests with CMake + if: matrix.os != 'windows-latest' working-directory: module - run: ctest --test-dir build/output --output-on-failure -C Debug + run: ctest --test-dir build/output --output-on-failure -C Release + + - name: Run project tests with CMake + if: matrix.os == 'windows-latest' + working-directory: module + run: | + $env:PATH="${{ env.INSTALL_PREFIX }}/lib;$env:PATH" + ctest --test-dir build/output --output-on-failure -C Release From 32d9ba700ba3987b16ceb47ba43212868e0474b1 Mon Sep 17 00:00:00 2001 From: "nikolai.shipilov" Date: Mon, 23 Feb 2026 16:31:08 +0100 Subject: [PATCH 2/2] Change test path --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a16392..52f865a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,7 +103,7 @@ jobs: - name: Run project tests with CMake if: matrix.os == 'windows-latest' - working-directory: module + working-directory: module/build/output run: | $env:PATH="${{ env.INSTALL_PREFIX }}/lib;$env:PATH" - ctest --test-dir build/output --output-on-failure -C Release + ctest --output-on-failure -C Release