Skip to content

Commit b96b4fb

Browse files
bkuengsfuhrer
authored andcommitted
ci: run ROS humble + jazzy for translation node
1 parent 5a2fc5e commit b96b4fb

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/ros_translation_node.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,19 @@ jobs:
1313
build_and_test:
1414
name: Build and test
1515
runs-on: [runs-on,runner=8cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=false]
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
config:
20+
- {ros_version: "humble", ubuntu: "jammy"}
21+
- {ros_version: "jazzy", ubuntu: "noble"}
1622
container:
17-
image: rostooling/setup-ros-docker:ubuntu-jammy-latest
23+
image: rostooling/setup-ros-docker:ubuntu-${{ matrix.config.ubuntu }}-latest
1824
steps:
19-
- name: Setup ROS 2
25+
- name: Setup ROS 2 (${{ matrix.config.ros_version }})
2026
uses: ros-tooling/[email protected]
2127
with:
22-
required-ros-distributions: humble
28+
required-ros-distributions: ${{ matrix.config.ros_version }}
2329
- name: Checkout repository
2430
uses: actions/checkout@v4
2531
with:
@@ -40,6 +46,7 @@ jobs:
4046
mkdir -p $ros_ws/src
4147
./Tools/copy_to_ros_ws.sh $ros_ws
4248
cd $ros_ws
43-
source /opt/ros/humble/setup.sh
49+
source /opt/ros/${{ matrix.config.ros_version }}/setup.sh
4450
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --symlink-install --event-handlers=console_cohesion+
51+
source ./install/setup.sh
4552
./build/translation_node/translation_node_unit_tests

0 commit comments

Comments
 (0)