Skip to content

Merge pull request #53 from avcuenes/ros2 #176

Merge pull request #53 from avcuenes/ros2

Merge pull request #53 from avcuenes/ros2 #176

Workflow file for this run

name: Build Test
on:
push:
branches:
- 'ros2'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- {rosdistro: 'humble', container: 'osrf/ros:humble-desktop'}
container: ${{ matrix.config.container }}
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
working-directory:
run: |
apt update
apt install -y python3-wstool libgdal-dev
shell: bash
- name: Build Test
working-directory:
run: |
mkdir -p $HOME/ros2_ws/src;
cd $HOME/ros2_ws/src
ln -s $GITHUB_WORKSPACE
cd $HOME/ros2_ws
source /opt/ros/humble/setup.bash
rosdep update
rosdep install --from-paths src --ignore-src -y --rosdistro ${{matrix.config.rosdistro}}
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to grid_map_geo
shell: bash
# - name: unit_tests
# working-directory:
# run: |
# cd $HOME/catkin_ws/src
# catkin config --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCATKIN_ENABLE_TESTING=True
# catkin build grid_map_geo --no-deps -i --catkin-make-args tests
# source $HOME/catkin_ws/devel/setup.bash
# status=0 && for f in $HOME/catkin_ws/devel/lib/*/*-test; do $f || exit 1; done
# shell: bash