From 23500d4c5cc660d0dac90bf204fe2140bb2af622 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Sat, 1 Jun 2024 12:21:18 +0200 Subject: [PATCH] CI: Test debug builds The assertions added in e.g. 54186d5 are removed in Release builds. Build in Debug mode too to test those in CI. --- .github/workflows/build.yml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69c53bf..4a0391a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,27 +15,46 @@ jobs: windows-cmake ] include: + - name: linux-cmake-debug + os: ubuntu-latest + build-system: cmake + build-type: Debug + - name: linux-cmake os: ubuntu-latest build-system: cmake + build-type: Release - name: linux-autotools os: ubuntu-latest build-system: autotools configure-options: --enable-sndfile --enable-alsa + - name: macos-cmake-debug + os: macos-latest + build-system: cmake + build-type: Debug + - name: macos-cmake os: macos-latest build-system: cmake + build-type: Release - name: macos-autotools os: macos-latest build-system: autotools configure-options: --enable-sndfile + - name: windows-cmake-debug + os: windows-latest + build-system: cmake + build-type: Debug + configure-options: -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows + - name: windows-cmake os: windows-latest build-system: cmake + build-type: Release configure-options: -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows runs-on: ${{ matrix.os }} @@ -64,17 +83,17 @@ jobs: - name: Configure CMake if: startsWith(matrix.build-system,'cmake') working-directory: ${{runner.workspace}}/build - run: cmake ${{github.workspace}} -DCMAKE_BUILD_TYPE=Release ${{matrix.configure-options}} + run: cmake ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{matrix.build-type}} ${{matrix.configure-options}} - name: Build CMake if: startsWith(matrix.build-system,'cmake') working-directory: ${{runner.workspace}}/build - run: cmake --build . --config Release + run: cmake --build . --config ${{matrix.build-type}} - name: Test CMake if: startsWith(matrix.build-system,'cmake') working-directory: ${{runner.workspace}}/build - run: ctest -C Release + run: ctest -C ${{matrix.build-type}} - name: Bootstrap Autotools if: startsWith(matrix.build-system,'autotools')