Update README.md #228
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: ROS2 Build and Test CI | |
on: | |
push: | |
branches: [ master] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out ubc-subbots/triton | |
uses: actions/checkout@v2 | |
- name: Setup ROS2 distro and system deps | |
uses: ros-tooling/[email protected] | |
with: | |
required-ros-distributions: foxy | |
- name: Install deps with rosdep | |
run: | | |
rosdep update --include-eol | |
rosdep install -i --from-path src --rosdistro foxy -y | |
- name: Uninstall em package | |
run: | | |
pip uninstall em -y | |
- name: Install empy package | |
run: | | |
pip install em | |
- name: Cache OpenCV | |
id: opencv-cache | |
uses: actions/cache@v2 | |
with: | |
path: ./opencv-install | |
key: ${{ runner.os }}-opencv-cache | |
- name: Install OpenCV | |
uses: rayandrews/with-opencv-action@v1 | |
with: | |
dir: ./opencv-install | |
cached: ${{ steps.opencv-cache.outputs.cache-hit }} | |
opencv-version: '4.5.3' | |
CMAKE_BUILD_TYPE: RELEASE | |
ENABLE_PRECOMPILED_HEADERS: OFF | |
- name: Ignore with colcon build | |
run: | | |
touch ./opencv-install/COLCON_IGNORE | |
- name: Source setup and build then test using colcon | |
env: | |
LD_LIBRARY_PATH: /usr/local/lib/ | |
run: | | |
source /opt/ros/foxy/setup.bash | |
source /usr/share/gazebo/setup.sh | |
pip uninstall em -y | |
colcon build --cmake-args -DCMAKE_CXX_STANDARD=14 | |
source ./install/setup.bash | |
colcon test | |
colcon test-result --verbose | |