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