Skip to content

Commit c313843

Browse files
authored
Add industrial CI (#492)
Add industrial CI * Bring nav2 in from source on rolling * Skip rosdep keys in nav2 that don't resolve Signed-off-by: Ryan Friedman <[email protected]>
1 parent 25c9009 commit c313843

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/industrial-ci.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Industrial CI
2+
3+
# Use industrial CI to ensure our packages express all dependencies.
4+
# Attempts to find issues like #490 before merge.
5+
# https://github.com/ros-industrial/industrial_ci?tab=readme-ov-file#for-github-actions
6+
7+
on:
8+
push:
9+
branches:
10+
- 'rolling'
11+
- 'jazzy'
12+
- 'iron'
13+
- 'humble'
14+
pull_request:
15+
branches:
16+
- '*'
17+
18+
jobs:
19+
industrial_ci:
20+
strategy:
21+
matrix:
22+
env:
23+
- {ROS_DISTRO: rolling, ROS_REPO: testing}
24+
- {ROS_DISTRO: rolling, ROS_REPO: main}
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
# nav2 on rolling is not available with binaries
29+
- name: Set UPSTREAM_WORKSPACE to bring in nav2 as a source dependency
30+
if: ${{ matrix.env.ROS_DISTRO == 'rolling' }}
31+
run: echo "UPSTREAM_WORKSPACE=https://raw.githubusercontent.com/ANYbotics/grid_map/rolling/tools/ros2_dependencies.repos" >> $GITHUB_ENV
32+
# We duplicate NAV2's key skipping because I doubt they intend this bespoke file to be used by other CI jobs:
33+
# https://github.com/ros-navigation/navigation2/blob/main/tools/skip_keys.txt
34+
# 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
36+
if: ${{ matrix.env.ROS_DISTRO == 'rolling' }}
37+
run: echo "ROSDEP_SKIP_KEYS=slam_toolbox" >> $GITHUB_ENV
38+
- uses: 'ros-industrial/industrial_ci@master'
39+
env: ${{matrix.env}}

0 commit comments

Comments
 (0)