From 2c83a7813fb142b7bb93d88e0ba99472a9ebea1e Mon Sep 17 00:00:00 2001 From: Johannes Wolf Date: Mon, 2 Sep 2024 10:11:17 +0200 Subject: [PATCH] cmake: Fail on no-tests --- .github/workflows/build-release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 8f2cb5a5..4915e1ff 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -50,12 +50,9 @@ jobs: - name: Compile run: | - mkdir build - cd build - cmake -GNinja -DCMAKE_BUILD_TYPE=Debug .. - cmake --build . + cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -B build + cmake --build build - name: Run Tests run: | - cd build - ctest --verbose + ctest --verbose --no-tests=error --test-dir=build