Skip to content

Commit 17feed7

Browse files
authored
ci: build and test on Lyrical and Rolling with Ubuntu 26.04 (#553)
1 parent a27e166 commit 17feed7

2 files changed

Lines changed: 30 additions & 9 deletions

File tree

‎.github/workflows/colcon.yaml‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,34 @@ on:
99
pull_request:
1010
branches:
1111
- '*'
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
build-test:
18+
name: build-test (${{ matrix.config.rosdistro }}, ${{ matrix.config.ros_repo }})
1419
runs-on: ubuntu-latest
1520
strategy:
1621
fail-fast: false
1722
matrix:
1823
config:
19-
- {rosdistro: 'rolling', container: 'rostooling/setup-ros-docker:ubuntu-noble-ros-rolling-desktop-latest'}
20-
container:
21-
image: ${{ matrix.config.container }}
24+
- {rosdistro: 'lyrical', ros_repo: 'main', skip_keys: ''}
25+
# octomap_rviz_plugins and octomap_server have no Rolling binary on Ubuntu 26.04 yet.
26+
- {rosdistro: 'rolling', ros_repo: 'testing', skip_keys: 'octomap_rviz_plugins octomap_server'}
27+
container:
28+
image: ros:${{ matrix.config.rosdistro }}-ros-base-resolute
2229
steps:
2330
- uses: actions/checkout@v4
2431
with:
2532
path: src/grid_map
33+
- name: Use the ROS testing repository
34+
run: |
35+
sed -i 's|packages.ros.org/ros2/ubuntu|packages.ros.org/ros2-testing/ubuntu|' /etc/apt/sources.list.d/*
36+
apt-get update
37+
DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
38+
shell: bash
39+
if: ${{ matrix.config.ros_repo == 'testing' }}
2640
- name: Pull in repos with vcs
2741
run: |
2842
apt-get update
@@ -32,10 +46,10 @@ jobs:
3246
if: ${{ matrix.config.rosdistro == 'rolling' }}
3347
- name: Install Dependencies with Rosdep
3448
run: |
35-
apt update
36-
rosdep update
49+
apt-get update
50+
rosdep update --rosdistro ${{matrix.config.rosdistro}}
3751
source /opt/ros/${{matrix.config.rosdistro}}/setup.bash
38-
rosdep install --from-paths src --ignore-src -y --skip-keys "slam_toolbox"
52+
rosdep install --from-paths $(colcon list --packages-up-to grid_map --paths-only) --ignore-src -y --rosdistro ${{matrix.config.rosdistro}} --skip-keys "${{matrix.config.skip_keys}}"
3953
shell: bash
4054
- name: Colcon Build (Release)
4155
run: |

‎.github/workflows/industrial-ci.yaml‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,19 @@ on:
1515
branches:
1616
- '*'
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
industrial_ci:
2024
strategy:
25+
fail-fast: false
2126
matrix:
2227
env:
28+
- {ROS_DISTRO: lyrical, ROS_REPO: main}
29+
- {ROS_DISTRO: lyrical, ROS_REPO: testing}
2330
- {ROS_DISTRO: rolling, ROS_REPO: testing}
24-
- {ROS_DISTRO: rolling, ROS_REPO: main}
2531
runs-on: ubuntu-latest
2632
steps:
2733
- uses: actions/checkout@v4
@@ -32,8 +38,9 @@ jobs:
3238
# We duplicate NAV2's key skipping because I doubt they intend this bespoke file to be used by other CI jobs:
3339
# https://github.com/ros-navigation/navigation2/blob/main/tools/skip_keys.txt
3440
# It also is out of date, so grid_map is just going to skip keys we are sure don't work.
35-
- name: set ROSDEP_SKIP_KEYS to skip nav2 keys
41+
# octomap_rviz_plugins and octomap_server have no Rolling binary on Ubuntu 26.04 yet.
42+
- name: Set ROSDEP_SKIP_KEYS to skip keys without Rolling binaries
3643
if: ${{ matrix.env.ROS_DISTRO == 'rolling' }}
37-
run: echo "ROSDEP_SKIP_KEYS=slam_toolbox" >> $GITHUB_ENV
44+
run: echo "ROSDEP_SKIP_KEYS=slam_toolbox octomap_rviz_plugins octomap_server" >> $GITHUB_ENV
3845
- uses: 'ros-industrial/industrial_ci@master'
3946
env: ${{matrix.env}}

0 commit comments

Comments
 (0)