2022-06-29 15:48:13 +00:00
|
|
|
name: ROS2 build/tests
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
build_and_tests:
|
2023-01-08 08:09:44 +00:00
|
|
|
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 }}
|
2022-06-29 15:48:13 +00:00
|
|
|
steps:
|
2023-01-08 08:09:44 +00:00
|
|
|
- name: setup ROS environment
|
|
|
|
uses: ros-tooling/setup-ros@v0.4
|
2022-06-29 15:48:13 +00:00
|
|
|
with:
|
2023-01-08 08:09:44 +00:00
|
|
|
required-ros-distributions: ${{ matrix.ros_distribution }}
|
2022-06-29 15:48:13 +00:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
2023-01-08 08:09:44 +00:00
|
|
|
- name: build multirobot_map_merge and explore_lite
|
|
|
|
uses: ros-tooling/action-ros-ci@v0.2
|
2022-06-29 15:48:13 +00:00
|
|
|
with:
|
2023-01-08 08:09:44 +00:00
|
|
|
package-name: multirobot_map_merge explore_lite
|
|
|
|
target-ros2-distro: ${{ matrix.ros_distribution }}
|
2022-06-29 15:48:13 +00:00
|
|
|
skip-tests: true
|
2022-07-05 00:07:52 +00:00
|
|
|
- name: Run gtests manually multirobot_map_merge
|
2022-06-29 15:48:13 +00:00
|
|
|
run: |
|
2023-01-08 08:09:44 +00:00
|
|
|
. /opt/ros/${{ matrix.ros_distribution }}/setup.sh && . ros_ws/install/setup.sh
|
2022-06-29 15:48:13 +00:00
|
|
|
cd ros_ws/build/multirobot_map_merge
|
|
|
|
./test_merging_pipeline
|
2022-07-05 00:07:52 +00:00
|
|
|
- name: Run gtests manually explore_lite
|
|
|
|
run: |
|
2023-01-08 08:09:44 +00:00
|
|
|
. /opt/ros/${{ matrix.ros_distribution }}/setup.sh && . ros_ws/install/setup.sh
|
2022-07-05 00:07:52 +00:00
|
|
|
cd ros_ws/build/explore_lite
|
2023-01-08 08:09:44 +00:00
|
|
|
./test_explore
|