From 4c711dca25adf071efab51308bdba52eb7c29e76 Mon Sep 17 00:00:00 2001 From: Martin Barnasconi Date: Thu, 10 Aug 2023 16:13:52 +0200 Subject: [PATCH] enforce testing on release configuration Signed-off-by: Martin Barnasconi --- .github/workflows/cmake.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 4159841d..af1e9aee 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -170,10 +170,9 @@ jobs: -DCMAKE_C_COMPILER=${{matrix.os.c_compiler}} ${{env.ESC}} -DCMAKE_CXX_STANDARD=11 ${{env.ESC}} -DCMAKE_INSTALL_PREFIX=${{env.SYSTEMC_HOME}} ${{env.ESC}} - -DCMAKE_BUILD_TYPE=Release ${{env.ESC}} .. - cmake --build . -- -j ${{env.NPROC}} - cmake --build . --target install + cmake --build . --config Release -- -j ${{env.NPROC}} + cmake --build . --config Release --target install - name: Configure run: | @@ -187,16 +186,15 @@ jobs: -DCMAKE_CXX_STANDARD=11 ${{env.ESC}} -DCMAKE_PREFIX_PATH=${{env.SYSTEMC_HOME}}/lib/cmake/SystemCLanguage ${{env.ESC}} -DCMAKE_INSTALL_PREFIX=${{env.CCI_HOME}} ${{env.ESC}} - -DCMAKE_BUILD_TYPE=Release ${{env.ESC}} ../../.. - name: Build working-directory: ${{env.CCI_HOME}}/build run: | - cmake --build . -- -j ${{env.NPROC}} - cmake --build . --target install + cmake --build . --config Release -- -j ${{env.NPROC}} + cmake --build . --config Release --target install - name: Test working-directory: ${{env.CCI_HOME}}/build run: | - cmake --build ./examples --target check + cmake --build ./examples --config Release --target check