Skip to content

Commit 3b344ef

Browse files
authored
Create ros.yml
1 parent 75e8616 commit 3b344ef

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ros.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# https://github.com/ros-tooling/setup-ros
2+
name: ros
3+
on: [push,workflow_dispatch]
4+
jobs:
5+
test_docker:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
ros_distribution:
10+
- humble
11+
- jazzy
12+
- rolling
13+
14+
include:
15+
16+
# Humble Hawksbill (May 2022 - May 2027)
17+
- docker_image: ubuntu:jammy
18+
ros_distribution: humble
19+
ros_version: 2
20+
21+
# Jazzy Jalisco (May 2024 - May 2029)
22+
- docker_image: ubuntu:noble
23+
ros_distribution: jazzy
24+
ros_version: 2
25+
26+
# Rolling Ridley (No End-Of-Life)
27+
- docker_image: ubuntu:noble
28+
ros_distribution: rolling
29+
ros_version: 2
30+
31+
container:
32+
image: ${{ matrix.docker_image }}
33+
steps:
34+
- name: setup ROS environment
35+
uses: ros-tooling/[email protected]
36+
with:
37+
required-ros-distributions: ${{ matrix.ros_distribution }}
38+
- name: build and test ROS 2
39+
if: ${{ matrix.ros_version == 2 }}
40+
uses: ros-tooling/[email protected]
41+
with:
42+
package-name: cpp_package_with_a_library
43+
target-ros2-distro: ${{ matrix.ros_distribution }}
44+
skip-tests: true

0 commit comments

Comments
 (0)