Open source #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C++ CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
container: | |
image: ros:noetic-ros-base | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Environment | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake g++ ninja-build | |
- name: Configure and Build | |
run: | | |
./opt/ros/noetic/setup.sh | |
mkdir build | |
cd build | |
cmake -DBUILD_TESTS=ON -DCATKIN_BUILD_BINARY_PACKAGE=OFF .. | |
cmake --build . -j8 | |
- name: Run tests | |
run: | | |
cd build | |
ctest |