From 0d49f08a5fd2fc0bc75ee6c87f0ea58297153028 Mon Sep 17 00:00:00 2001 From: Svalorzen Date: Wed, 6 Mar 2024 12:03:25 +0100 Subject: [PATCH] fix: system-agnostic config specification for CMake --- .github/workflows/build_cmake.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 1ecdeed..b74be93 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04, Windows-2019, macos-11] - build-type: ["Release"] + build-type: ["Debug", "Release"] steps: - name: Checkout repository. @@ -27,7 +27,7 @@ jobs: - name: Run CMake working-directory: ${{ runner.workspace }}/GitHash/exampleProject/build run: | - cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} + cmake .. --config ${{ matrix.build-type }} - name: Build @@ -38,4 +38,4 @@ jobs: - name: Run test working-directory: ${{ runner.workspace }}/GitHash/exampleProject/build run: | - ctest -C Release -V + ctest -C ${{ matrix.build-type }} -V