From f5e96dd830b603b563d977cfc38a61f66f70e4d5 Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Tue, 19 Sep 2023 02:29:07 -0400 Subject: [PATCH] add test to ci --- .github/workflows/cmake.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 63d368814f7..daad223485a 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -15,11 +15,11 @@ jobs: - os: ubuntu-22.04 name: Linux container: wpilib/roborio-cross-ubuntu:2023-22.04 - flags: "-DCMAKE_BUILD_TYPE=Release -DWITH_EXAMPLES=ON" + flags: "-DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_EXAMPLES=ON" - os: macOS-12 name: macOS container: "" - flags: "-DCMAKE_BUILD_TYPE=Release -DWITH_JAVA=OFF -DWITH_EXAMPLES=ON" + flags: "-DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_JAVA=OFF -DWITH_EXAMPLES=ON" name: "Build - ${{ matrix.name }}" runs-on: ${{ matrix.os }} @@ -45,7 +45,7 @@ jobs: run: python -m pip install jinja2 - name: configure - run: cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo ${{ matrix.flags }} + run: cmake -S . -B build -G "Ninja" ${{ matrix.flags }} - name: build working-directory: build @@ -80,3 +80,7 @@ jobs: - name: build working-directory: build run: cmake --build . --parallel 1 + + - name: test + working-directory: build + run: ctest --output-on-failure