From 1610e0cbd159bba2e4dd55bd0789894195bd939e Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Thu, 21 Sep 2023 19:59:58 +0200 Subject: [PATCH] Run the cmake tests in the ci --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83329f81ab..ebbdbd9b18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -807,3 +807,27 @@ jobs: - name: run tests run: | bake run test/cpp_api --cfg sanitize -- -j 8 + + test-cmake: + needs: [ build-linux ] + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest ] + + steps: + - uses: actions/checkout@v3 + - name: clone bake + run: | + git clone https://github.com/SanderMertens/bake + + - name: build flecs & tests + run: | + cmake -DFLECS_TESTS=ON -DBAKE_DIRECTORY=bake + make -j 8 + + - name: run tests + run: | + ctest -C Debug --verbose