Fix humble and add action to test all ros distros (#29)

* add action to compile all distros

* fix ci

* fix humble

* update ci

* update ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci
main
Carlos Andrés Álvarez Restrepo 2023-01-08 03:09:44 -05:00 committed by GitHub
parent d75bb078ae
commit 41eff876ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 14 deletions

View File

@ -3,30 +3,45 @@ on:
pull_request: pull_request:
jobs: jobs:
build_and_tests: build_and_tests:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy:
matrix:
ros_distribution:
- foxy
- galactic
- humble
include:
# Foxy Fitzroy (June 2020 - May 2023)
- docker_image: ubuntu:focal
ros_distribution: foxy
# Galactic Geochelone (May 2021 - November 2022)
- docker_image: ubuntu:focal
ros_distribution: galactic
# Humble Hawksbill (May 2022 - May 2027)
- docker_image: ubuntu:jammy
ros_distribution: humble
container:
image: ${{ matrix.docker_image }}
steps: steps:
- uses: ros-tooling/setup-ros@v0.3 - name: setup ROS environment
uses: ros-tooling/setup-ros@v0.4
with: with:
required-ros-distributions: galactic required-ros-distributions: ${{ matrix.ros_distribution }}
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: ros-tooling/action-ros-ci@v0.2 - name: build multirobot_map_merge and explore_lite
uses: ros-tooling/action-ros-ci@v0.2
with: with:
package-name: multirobot_map_merge package-name: multirobot_map_merge explore_lite
target-ros2-distro: galactic target-ros2-distro: ${{ matrix.ros_distribution }}
skip-tests: true skip-tests: true
- name: Run gtests manually multirobot_map_merge - name: Run gtests manually multirobot_map_merge
run: | run: |
source /opt/ros/galactic/setup.sh && source ros_ws/install/setup.sh . /opt/ros/${{ matrix.ros_distribution }}/setup.sh && . ros_ws/install/setup.sh
cd ros_ws/build/multirobot_map_merge cd ros_ws/build/multirobot_map_merge
./test_merging_pipeline ./test_merging_pipeline
- uses: ros-tooling/action-ros-ci@v0.2
with:
package-name: explore_lite
target-ros2-distro: galactic
skip-tests: true
- name: Run gtests manually explore_lite - name: Run gtests manually explore_lite
run: | run: |
source /opt/ros/galactic/setup.sh && source ros_ws/install/setup.sh . /opt/ros/${{ matrix.ros_distribution }}/setup.sh && . ros_ws/install/setup.sh
cd ros_ws/build/explore_lite cd ros_ws/build/explore_lite
./test_explore ./test_explore

View File

@ -99,6 +99,7 @@ target_link_libraries(map_merge combine_grids)
# target_link_libraries(map_merge) # target_link_libraries(map_merge)
ament_target_dependencies(map_merge ${DEPENDENCIES}) ament_target_dependencies(map_merge ${DEPENDENCIES})
ament_target_dependencies(combine_grids ${DEPENDENCIES})
install( install(
TARGETS combine_grids TARGETS combine_grids