@@ -141,3 +141,62 @@ jobs:
141
141
USE_JENKINS : ${{ matrix.USE_JENKINS }}
142
142
DOCKER_IMAGE_JENKINS : ${{ matrix.DOCKER_IMAGE_JENKINS }}
143
143
TIMEOUT_JENKINS : 180
144
+
145
+ # ROS-O setup https://github.com/v4hn/ros-o-builder/blob/jammy-one/README.md#install-instructions
146
+ ros-o :
147
+ runs-on : ubuntu-latest
148
+
149
+ strategy :
150
+ fail-fast : false
151
+ matrix :
152
+ include :
153
+ - DISTRO : ubuntu:22.04
154
+ ROS_REPOSITORY_URL : https://raw.githubusercontent.com/v4hn/ros-o-builder/jammy-one/repository
155
+
156
+ container : ${{ matrix.DISTRO }}
157
+
158
+ env :
159
+ DEBIAN_FRONTEND : noninteractive
160
+
161
+ steps :
162
+ - name : Chcekout Source
163
+
164
+
165
+ - name : Setup ROS-O deb repository
166
+ run : |
167
+ set -x
168
+ apt update && apt install -qq -y ca-certificates
169
+ echo "deb [trusted=yes] ${{ matrix.ROS_REPOSITORY_URL }}/ ./" | tee /etc/apt/sources.list.d/ros-o-builder.list
170
+ apt update
171
+ apt install -qq -y python3-rosdep2
172
+ echo "yaml ${{ matrix.ROS_REPOSITORY_URL }}/local.yaml debian" | tee /etc/ros/rosdep/sources.list.d/1-ros-o-builder.list
173
+ rosdep update
174
+
175
+ - name : Setup catkin-tools
176
+ run : |
177
+ set -x
178
+ # setup catkin tools
179
+ apt install -qq -y python3-pip
180
+ pip3 install catkin-tools
181
+ # setup build tools
182
+ apt install -qq -y cmake build-essential catkin ros-one-rosbash
183
+
184
+ - name : Setup Workspace
185
+ run : |
186
+ source /opt/ros/one/setup.bash
187
+ set -x
188
+ # setup workspace
189
+ mkdir -p ~/ws/src
190
+ cd ~/ws/src
191
+ ln -sf $GITHUB_WORKSPACE .
192
+ rosdep install -qq -r -y --from-path . --ignore-src || echo "OK"
193
+ shell : bash
194
+
195
+ - name : Compile Packages
196
+ run : |
197
+ source /opt/ros/one/setup.bash
198
+ set -x
199
+ cd ~/ws/
200
+ catkin build --no-status -sv ${{ matrix.CATKIN_OPTIONS }} --cmake-args -DCATKIN_ENABLE_TESTING=OFF -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ${{ matrix.CMAKE_OPTIONS }}
201
+ shell : bash
202
+
0 commit comments