From b05004eccd9ca6568bf937fce270e81ce4065dce Mon Sep 17 00:00:00 2001 From: Conor Williams Date: Sun, 17 Sep 2023 16:22:10 +0100 Subject: [PATCH] ci 13 (debug build) --- .github/workflows/ci.yml | 10 ++++++---- CMakePresets.json | 10 ++-------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a2a6575..01aa74a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,11 +10,12 @@ on: jobs: job: - name: test-${{ matrix.os }}-${{ github.workflow }} + name: test-${{ matrix.os }}-${{ github.workflow }}-${{ matrix.build-type }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: + build-type: [Debug, Release] os: [ubuntu-latest, macos-13, windows-latest] include: - os: windows-latest @@ -86,11 +87,12 @@ jobs: run: cmake "--preset=ci-$("${{ matrix.os }}".split("-")[0])" - name: Build - run: cmake --build build --config Release -j 2 + run: cmake --build build --config ${{ matrix.os }} -j 2 - name: Install - run: cmake --install build --config Release --prefix prefix + run: cmake --install build --config ${{ matrix.os }} --prefix prefix - name: Test + if: matrix.os != 'windows-latest' working-directory: build - run: ctest --output-on-failure --no-tests=error -C Release -j 2 \ No newline at end of file + run: ctest --output-on-failure --no-tests=error -C ${{ matrix.os }} -j 2 \ No newline at end of file diff --git a/CMakePresets.json b/CMakePresets.json index 216dabb3..e2a7f772 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -96,10 +96,7 @@ "flags-linux", "ci-vcpkg", "ci-std" - ], - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Release" - } + ] }, { "name": "ci-darwin", @@ -109,10 +106,7 @@ "flags-darwin", "ci-vcpkg", "ci-std" - ], - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Release" - } + ] }, { "name": "ci-win64",