Skip to content

Commit d677a88

Browse files
Acuadros95pablogs9
andauthored
Humble release (#513)
* Add renesas dummy meta (#516) Signed-off-by: Pablo Garrido <[email protected]> * Upgrade to Humble * Update packages Signed-off-by: Pablo Garrido <[email protected]> * CI with ROS2 build step * Add ros distro to rosdep * Remove line * Fix CI workflow * Test * Test CI env variable * Fix typo * Update CI * Fix nightly * Fix * Add missing galactic tests * Fix * Test zephyr error on foxy * Add zephyr fix Co-authored-by: Pablo Garrido <[email protected]>
1 parent c1ee153 commit d677a88

File tree

19 files changed

+467
-94
lines changed

19 files changed

+467
-94
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,37 @@ on:
66
- 'README.md'
77
branches:
88
- '**'
9+
env:
10+
ROS_DISTRO: humble
911

1012
jobs:
1113

1214
micro_ros_build:
1315
runs-on: ubuntu-latest
14-
container: ros:rolling
15-
16+
container:
17+
image: ubuntu:jammy
18+
strategy:
19+
fail-fast: false
1620
steps:
1721
- uses: actions/checkout@v2
1822
with:
1923
path: src/micro_ros_setup
2024

25+
- uses: ros-tooling/[email protected]
26+
with:
27+
use-ros2-testing: true
28+
required-ros-distributions: ${{ env.ROS_DISTRO }}
29+
2130
- name: Dependencies
2231
run: |
2332
apt update
2433
apt install -y python3-colcon-metadata python3-pip
25-
rosdep update --os=ubuntu:jammy --rosdistro $ROS_DISTRO
26-
rosdep install --os=ubuntu:jammy -y --from-paths src --ignore-src -y
34+
rosdep update --rosdistro ${{ env.ROS_DISTRO }}
35+
rosdep install --rosdistro ${{ env.ROS_DISTRO }} -y --from-paths src --ignore-src -y
2736
2837
- name: Build
2938
run: |
30-
. /opt/ros/$ROS_DISTRO/setup.sh
39+
. /opt/ros/${{ env.ROS_DISTRO }}/setup.sh
3140
colcon build
3241
3342
- name: Install micro-ROS build system
@@ -41,21 +50,29 @@ jobs:
4150

4251
micro_ros_agent:
4352
runs-on: ubuntu-latest
44-
container: ros:rolling
53+
container:
54+
image: ubuntu:jammy
55+
strategy:
56+
fail-fast: false
4557
needs: micro_ros_build
4658

4759
steps:
4860
- uses: actions/checkout@v2
4961
with:
5062
path: src/micro_ros_setup
5163

64+
- uses: ros-tooling/[email protected]
65+
with:
66+
use-ros2-testing: true
67+
required-ros-distributions: ${{ env.ROS_DISTRO }}
68+
5269
- name: dependencies
5370
run: |
5471
apt update
5572
apt install -y python3-colcon-metadata python3-pip
56-
apt install -y ros-${ROS_DISTRO}-rmw-fastrtps-cpp
57-
rosdep update --os=ubuntu:jammy --rosdistro $ROS_DISTRO
58-
rosdep install --os=ubuntu:jammy -y --from-paths src --ignore-src -y
73+
apt install -y ros-${{ env.ROS_DISTRO }}-rmw-fastrtps-cpp
74+
rosdep update --rosdistro ${{ env.ROS_DISTRO }}
75+
rosdep install --rosdistro ${{ env.ROS_DISTRO }} -y --from-paths src --ignore-src -y
5976
6077
- uses: actions/download-artifact@v1
6178
with:
@@ -68,7 +85,7 @@ jobs:
6885
6986
- name: build
7087
run: |
71-
. /opt/ros/$ROS_DISTRO/setup.sh
88+
. /opt/ros/${{ env.ROS_DISTRO }}/setup.sh
7289
. install/local_setup.sh
7390
ros2 run micro_ros_setup create_agent_ws.sh
7491
ros2 run micro_ros_setup build_agent.sh
@@ -79,9 +96,9 @@ jobs:
7996
8097
micro_ros_client:
8198
runs-on: ubuntu-latest
82-
container: ros:rolling
8399
needs: micro_ros_build
84-
100+
container:
101+
image: ubuntu:jammy
85102
strategy:
86103
fail-fast: false
87104
matrix:
@@ -184,28 +201,25 @@ jobs:
184201
- rtos: mbed
185202
platform: disco_l475vg_iot01a
186203
binary: 'firmware/micro_ros_mbed/cmake_build/DISCO_L475VG_IOT01A/develop/GCC_ARM/micro_ros_mbed.bin'
204+
187205
steps:
188206
- uses: actions/checkout@v2
189207
with:
190208
path: src/micro_ros_setup
191209

210+
- uses: ros-tooling/[email protected]
211+
with:
212+
use-ros2-testing: true
213+
required-ros-distributions: ${{ env.ROS_DISTRO }}
214+
192215
- name: Dependencies
193216
run: |
194217
apt update
195218
apt upgrade -y
196-
# Install last version of CMake
197-
apt install -y apt-transport-https ca-certificates gnupg software-properties-common wget
198-
if [ $(lsb_release -sr) = "22.04" ]; then
199-
echo "Using Ubuntu mainline CMake"
200-
else
201-
echo "Adding Kitware CMake repo to install CMake"
202-
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
203-
apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'
204-
fi
205219
apt-get update
206220
apt install -y python3-colcon-metadata python3-pip cmake
207-
rosdep update --os=ubuntu:jammy --rosdistro $ROS_DISTRO
208-
rosdep install --os=ubuntu:jammy -y --from-paths src --ignore-src -y
221+
rosdep update --rosdistro ${{ env.ROS_DISTRO }}
222+
rosdep install --rosdistro ${{ env.ROS_DISTRO }} -y --from-paths src --ignore-src -y
209223
210224
- uses: actions/download-artifact@v1
211225
with:
@@ -218,7 +232,7 @@ jobs:
218232
219233
- name: Configure and build micro-ROS
220234
run: |
221-
. /opt/ros/$ROS_DISTRO/setup.sh
235+
. /opt/ros/${{ env.ROS_DISTRO }}/setup.sh
222236
. install/local_setup.sh
223237
ros2 run micro_ros_setup create_firmware_ws.sh ${{ matrix.rtos }} ${{ matrix.platform }}
224238
ros2 run micro_ros_setup configure_firmware.sh ${{ matrix.configuration }} ${{ matrix.transport_arguments }}

0 commit comments

Comments
 (0)