File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1919 ros_distribution :
2020 - humble
2121 - jazzy
22- - rolling
22+ # - rolling
2323 include :
2424 # ROS 2 Humble Hawksbill
2525 - docker_image : ubuntu:jammy
3030 ros_distribution : jazzy
3131 ros_version : 2
3232 # ROS 2 Rolling Ridley
33- - docker_image : ubuntu:noble
34- ros_distribution : rolling
35- ros_version : 2
33+ # - docker_image: ubuntu:noble
34+ # ros_distribution: rolling
35+ # ros_version: 2
3636 container :
3737 image : ${{ matrix.docker_image }}
3838 steps :
Original file line number Diff line number Diff line change @@ -16,6 +16,18 @@ if(DEFINED ENV{ROS_DISTRO})
1616 set (ROS_DISTRO $ENV{ROS_DISTRO} )
1717endif ()
1818
19+ if (NOT DEFINED ROS_DISTRO OR ROS_DISTRO STREQUAL "" )
20+ execute_process (
21+ COMMAND printenv ROS_DISTRO
22+ OUTPUT_VARIABLE ROS_DISTRO
23+ OUTPUT_STRIP_TRAILING_WHITESPACE
24+ )
25+ endif ()
26+
27+ if (NOT DEFINED ROS_DISTRO OR ROS_DISTRO STREQUAL "" )
28+ message (WARNING "ROS_DISTRO is not defined." )
29+ endif ()
30+
1931if (ROS_DISTRO STREQUAL "humble" )
2032 add_definitions (-DROS2_HUMBLE)
2133elseif (ROS_DISTRO STREQUAL "jazzy" OR ROS_DISTRO STREQUAL "rolling" )
You can’t perform that action at this time.
0 commit comments