1+ # https://github.com/ros-tooling/setup-ros
2+ name : jazzy_and_rolling # On Linux, iterates on all ROS 1 and ROS 2 distributions.
3+ on : [push,workflow_dispatch]
4+ jobs :
5+ test_docker : # On Linux, iterates on all ROS 1 and ROS 2 distributions.
6+ runs-on : ubuntu-latest
7+ strategy :
8+ matrix :
9+ ros_distribution :
10+ - jazzy
11+ - rolling
12+
13+ # Define the Docker image(s) associated with each ROS distribution.
14+ # The include syntax allows additional variables to be defined, like
15+ # docker_image in this case. See documentation:
16+ # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-configurations-in-a-matrix-build
17+ #
18+ # Platforms are defined in REP 3 and REP 2000:
19+ # https://ros.org/reps/rep-0003.html
20+ # https://ros.org/reps/rep-2000.html
21+ include :
22+
23+ # Jazzy Jalisco (May 2024 - May 2029)
24+ - docker_image : ubuntu:noble
25+ ros_distribution : jazzy
26+ ros_version : 2
27+
28+ # Rolling Ridley (No End-Of-Life)
29+ - docker_image : ubuntu:noble
30+ ros_distribution : rolling
31+ ros_version : 2
32+ container :
33+ image : ${{ matrix.docker_image }}
34+ steps :
35+ - name : setup ROS environment
36+ uses : ros-tooling/setup-ros@v0.7
37+ with :
38+ required-ros-distributions : ${{ matrix.ros_distribution }}
39+ - name : install DQ Robotics Devel
40+ run : |
41+ sudo apt-get -y install software-properties-common
42+ sudo add-apt-repository ppa:dqrobotics-dev/development
43+ sudo apt-get update
44+ sudo apt-get -y install libdqrobotics libdqrobotics-interface-json11 libdqrobotics-interface-coppeliasim libdqrobotics-interface-coppeliasim-zmq
45+ - name : Pre Build
46+ run : |
47+ cd .devel
48+ chmod +x prebuild_ros2.sh
49+ ./prebuild_ros2.sh
50+ - name : Build
51+ run : |
52+ cd .devel
53+ chmod +x build_ros2.sh
54+ ./build_ros2.sh
0 commit comments