Skip to content

Commit

Permalink
add test to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Sep 19, 2023
1 parent 405f10f commit f5e96dd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit f5e96dd

Please sign in to comment.