name: ros2 on: push: branches: [ lyrical-devel ] pull_request: branches: [ lyrical-devel ] 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 }}${{ matrix.ros2_testing && ' (ros-testing)' || '' }} runs-on: ubuntu-latest strategy: matrix: ros_distro: [lyrical] ros2_testing: [false, true] # build with main and ros-testing apt repositories include: - ros_distro: lyrical skip_keys: '' # skip keys shoudl be empty when release on ROSDISTRO_devel branch, comment these keys in the appriopriate package. # velodyne and grid_map_ros are not available on lyrical, they are commented in rtabmap_examples and rtabmap_util packages. packages: 'rtabmap_ros' 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.ros2_testing }} - 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: lyrical-devel\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-check: true rosdep-skip-keys: "${{ matrix.skip_keys }}"