mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-09-13 06:40:19 +08:00
66 lines
2.3 KiB
YAML
66 lines
2.3 KiB
YAML
|
|
name: ros2
|
|
|
|
on:
|
|
push:
|
|
branches: [ ros2 ]
|
|
pull_request:
|
|
branches: [ ros2 ]
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
BUILD_TYPE: Release
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
build:
|
|
name: Build ros2 ${{ matrix.ros_distro }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
ros_distro: [humble, jazzy, kilted, lyrical, rolling]
|
|
include:
|
|
- ros_distro: humble
|
|
skip_keys: ''
|
|
packages: 'rtabmap_ros'
|
|
- ros_distro: jazzy
|
|
skip_keys: ''
|
|
packages: 'rtabmap_ros'
|
|
- ros_distro: kilted
|
|
skip_keys: 'grid_map_ros'
|
|
packages: 'rtabmap_ros'
|
|
- ros_distro: lyrical
|
|
skip_keys: 'nav2_bringup nav2_msgs velodyne grid_map_ros realsense2_camera libpointmatcher'
|
|
# rtabmap_costmap_plugins cannot be built, missing nav2 on lyrical, build other packages:
|
|
packages: 'rtabmap_launch rtabmap_demos rtabmap_python rtabmap_examples rtabmap_rviz_plugins'
|
|
- ros_distro: rolling
|
|
skip_keys: 'nav2_bringup nav2_msgs velodyne'
|
|
use_ros2_testing: true # Rolling is using ros2-testing (nightly)
|
|
# rtabmap_costmap_plugins cannot be built, missing nav2 on rolling, build other packages:
|
|
packages: 'rtabmap_launch rtabmap_demos rtabmap_python rtabmap_examples rtabmap_rviz_plugins'
|
|
fail-fast: false
|
|
container:
|
|
image: osrf/ros:${{ matrix.ros_distro }}-desktop-full
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ros-tooling/setup-ros@v0.7
|
|
with:
|
|
required-ros-distributions: ${{ matrix.ros_distro }}
|
|
use-ros2-testing: ${{ matrix.use_ros2_testing || false }}
|
|
- run: |
|
|
DEBIAN_FRONTEND=noninteractive
|
|
sudo apt update
|
|
sudo apt upgrade -y
|
|
- run: |
|
|
echo "repositories:\n introlab/rtabmap:\n type: git\n url: https://github.com/introlab/rtabmap.git\n version: master\n" > /tmp/deps.repos &&\
|
|
cat /tmp/deps.repos
|
|
- uses: ros-tooling/action-ros-ci@v0.4
|
|
with:
|
|
package-name: ${{ matrix.packages }}
|
|
target-ros2-distro: ${{ matrix.ros_distro }}
|
|
vcs-repo-file-url: /tmp/deps.repos
|
|
rosdep-skip-keys: "${{ matrix.skip_keys }}"
|