Skip to content

Commit 9c7cdb7

Browse files
authored
Fix Zephyr CI (#325)
* Fix Zephyr CI * Fix * Fix * Fix * Update * Update * Update
1 parent 720350f commit 9c7cdb7

13 files changed

Lines changed: 55 additions & 53 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
pull_request:
5-
branches:
5+
branches:
66
- '**'
77

88
jobs:
@@ -20,7 +20,7 @@ jobs:
2020
run: |
2121
apt update
2222
apt install -y python3-colcon-metadata python3-pip
23-
rosdep update
23+
rosdep update --rosdistro $ROS_DISTRO
2424
rosdep install -y --from-paths src --ignore-src -y
2525
2626
- name: Build
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
apt update
5353
apt install -y python3-colcon-metadata python3-pip
54-
rosdep update
54+
rosdep update --rosdistro $ROS_DISTRO
5555
rosdep install -y --from-paths src --ignore-src -y
5656
5757
- uses: actions/download-artifact@v1
@@ -125,7 +125,7 @@ jobs:
125125
configuration: int32_publisher
126126
transport_arguments: -t serial -d 1
127127
binary: 'firmware/freertos_apps/microros_nucleo_f746zg_extensions/build/micro-ROS.elf'
128-
128+
129129
- rtos: freertos
130130
platform: nucleo_f767zi
131131
configuration: int32_publisher
@@ -155,7 +155,7 @@ jobs:
155155
configuration: int32_publisher
156156
transport_arguments: -t serial -d 3
157157
binary: 'firmware/build/zephyr/zephyr.bin'
158-
158+
159159
- rtos: zephyr
160160
platform: nucleo_f746zg
161161
configuration: int32_publisher
@@ -171,7 +171,7 @@ jobs:
171171
- rtos: nuttx
172172
platform: olimex-stm32-e407
173173
configuration: drive_base
174-
transport_arguments:
174+
transport_arguments:
175175
binary: 'firmware/NuttX/nuttx.bin'
176176

177177
- rtos: raspbian
@@ -193,7 +193,7 @@ jobs:
193193
run: |
194194
apt update
195195
apt install -y python3-colcon-metadata python3-pip
196-
rosdep update
196+
rosdep update --rosdistro $ROS_DISTRO
197197
rosdep install -y --from-paths src --ignore-src -y
198198
199199
- uses: actions/download-artifact@v1
@@ -210,8 +210,8 @@ jobs:
210210
. /opt/ros/foxy/setup.sh
211211
. install/local_setup.sh
212212
ros2 run micro_ros_setup create_firmware_ws.sh ${{ matrix.rtos }} ${{ matrix.platform }}
213-
ros2 run micro_ros_setup configure_firmware.sh ${{ matrix.configuration }} ${{ matrix.transport_arguments }}
214-
ros2 run micro_ros_setup build_firmware.sh ${{ matrix.build_arguments }}
213+
ros2 run micro_ros_setup configure_firmware.sh ${{ matrix.configuration }} ${{ matrix.transport_arguments }}
214+
ros2 run micro_ros_setup build_firmware.sh ${{ matrix.build_arguments }}
215215
216216
- name: Check binaries
217217
run: |

.github/workflows/nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: |
3333
apt update
3434
apt install -y python3-colcon-metadata python3-pip
35-
rosdep update
35+
rosdep update --rosdistro $ROS_DISTRO
3636
rosdep install -y --from-paths src --ignore-src -y
3737
3838
- name: Build
@@ -330,7 +330,7 @@ jobs:
330330
run: |
331331
apt update
332332
apt install -y python3-colcon-metadata python3-pip
333-
rosdep update
333+
rosdep update --rosdistro $ROS_DISTRO
334334
rosdep install -y --from-paths src --ignore-src -y
335335
336336
- uses: actions/download-artifact@v1
@@ -378,7 +378,7 @@ jobs:
378378
run: |
379379
apt update
380380
apt install -y python3-colcon-metadata python3-pip
381-
rosdep update
381+
rosdep update --rosdistro $ROS_DISTRO
382382
rosdep install -y --from-paths src --ignore-src -y
383383
384384
- uses: actions/download-artifact@v1

config/freertos/crazyflie21/create.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
pushd $FW_TARGETDIR >/dev/null
22
# Install toolchain
33
mkdir toolchain
4-
5-
4+
5+
66
# Install toolchain
77
echo "Downloading ARM compiler, this may take a while"
88
curl -fsSLO https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2
99
tar --strip-components=1 -xvjf gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2 -C toolchain > /dev/null
1010
rm gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2
11-
12-
11+
1312
# Import repos
1413
vcs import --input $PREFIX/config/$RTOS/$PLATFORM/board.repos
1514

@@ -23,6 +22,6 @@ pushd $FW_TARGETDIR >/dev/null
2322
touch mcu_ws/uros/rcl/rcl_yaml_param_parser/COLCON_IGNORE
2423
touch mcu_ws/uros/rclc/rclc_examples/COLCON_IGNORE
2524

26-
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro foxy --skip-keys="$SKIP"
25+
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro $ROS_DISTRO --skip-keys="$SKIP"
2726

2827
popd >/dev/null

config/freertos/esp32/create.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ pushd $FW_TARGETDIR >/dev/null
4343
touch mcu_ws/uros/rcl/rcl_yaml_param_parser/COLCON_IGNORE
4444
touch mcu_ws/uros/rclc/rclc_examples/COLCON_IGNORE
4545

46-
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro foxy --skip-keys="$SKIP"
46+
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro $ROS_DISTRO --skip-keys="$SKIP"
4747
popd >/dev/null

config/freertos/nucleo_f446re/create.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
pushd $FW_TARGETDIR >/dev/null
22
# Install toolchain
33
mkdir toolchain
4-
5-
4+
5+
66
# Install toolchain
77
echo "Downloading ARM compiler, this may take a while"
88
curl -fsSLO https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2
99
tar --strip-components=1 -xvjf gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2 -C toolchain > /dev/null
1010
rm gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2
11-
11+
1212
# Import repos
1313
vcs import --input $PREFIX/config/$RTOS/$PLATFORM/board.repos
1414

@@ -22,5 +22,5 @@ pushd $FW_TARGETDIR >/dev/null
2222
touch mcu_ws/uros/rcl/rcl_yaml_param_parser/COLCON_IGNORE
2323
touch mcu_ws/uros/rclc/rclc_examples/COLCON_IGNORE
2424

25-
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro foxy --skip-keys="$SKIP"
25+
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro $ROS_DISTRO --skip-keys="$SKIP"
2626
popd >/dev/null

config/freertos/nucleo_f446ze/create.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
pushd $FW_TARGETDIR >/dev/null
22
# Install toolchain
33
mkdir toolchain
4-
5-
4+
5+
66
# Install toolchain
77
echo "Downloading ARM compiler, this may take a while"
88
curl -fsSLO https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2
99
tar --strip-components=1 -xvjf gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2 -C toolchain > /dev/null
1010
rm gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2
11-
11+
1212
# Import repos
1313
vcs import --input $PREFIX/config/$RTOS/$PLATFORM/board.repos
1414

@@ -22,5 +22,5 @@ pushd $FW_TARGETDIR >/dev/null
2222
touch mcu_ws/uros/rcl/rcl_yaml_param_parser/COLCON_IGNORE
2323
touch mcu_ws/uros/rclc/rclc_examples/COLCON_IGNORE
2424

25-
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro foxy --skip-keys="$SKIP"
25+
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro $ROS_DISTRO --skip-keys="$SKIP"
2626
popd >/dev/null

config/freertos/nucleo_f746zg/create.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
pushd $FW_TARGETDIR >/dev/null
22
# Install toolchain
33
mkdir toolchain
4-
5-
4+
5+
66
# Install toolchain
77
echo "Downloading ARM compiler, this may take a while"
88
curl -fsSLO https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2
99
tar --strip-components=1 -xvjf gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2 -C toolchain > /dev/null
1010
rm gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2
11-
11+
1212
# Import repos
1313
vcs import --input $PREFIX/config/$RTOS/$PLATFORM/board.repos
1414

@@ -22,5 +22,5 @@ pushd $FW_TARGETDIR >/dev/null
2222
touch mcu_ws/uros/rcl/rcl_yaml_param_parser/COLCON_IGNORE
2323
touch mcu_ws/uros/rclc/rclc_examples/COLCON_IGNORE
2424

25-
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro foxy --skip-keys="$SKIP"
25+
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro $ROS_DISTRO --skip-keys="$SKIP"
2626
popd >/dev/null

config/freertos/nucleo_f767zi/create.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
pushd $FW_TARGETDIR >/dev/null
22
# Install toolchain
33
mkdir toolchain
4-
5-
4+
5+
66
# Install toolchain
77
echo "Downloading ARM compiler, this may take a while"
88
curl -fsSLO https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2
99
tar --strip-components=1 -xvjf gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2 -C toolchain > /dev/null
1010
rm gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2
11-
11+
1212
# Import repos
1313
vcs import --input $PREFIX/config/$RTOS/$PLATFORM/board.repos
1414

@@ -22,5 +22,5 @@ pushd $FW_TARGETDIR >/dev/null
2222
touch mcu_ws/uros/rcl/rcl_yaml_param_parser/COLCON_IGNORE
2323
touch mcu_ws/uros/rclc/rclc_examples/COLCON_IGNORE
2424

25-
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro foxy --skip-keys="$SKIP"
25+
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro $ROS_DISTRO --skip-keys="$SKIP"
2626
popd >/dev/null

config/freertos/olimex-stm32-e407/create.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
pushd $FW_TARGETDIR >/dev/null
22
# Install toolchain
33
mkdir toolchain
4-
5-
4+
5+
66
# Install toolchain
77
echo "Downloading ARM compiler, this may take a while"
88
curl -fsSLO https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2
99
tar --strip-components=1 -xvjf gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2 -C toolchain > /dev/null
1010
rm gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2
11-
11+
1212
# Import repos
1313
vcs import --input $PREFIX/config/$RTOS/$PLATFORM/board.repos
1414

@@ -22,5 +22,5 @@ pushd $FW_TARGETDIR >/dev/null
2222
touch mcu_ws/uros/rcl/rcl_yaml_param_parser/COLCON_IGNORE
2323
touch mcu_ws/uros/rclc/rclc_examples/COLCON_IGNORE
2424

25-
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro foxy --skip-keys="$SKIP"
25+
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro $ROS_DISTRO --skip-keys="$SKIP"
2626
popd >/dev/null

config/generate_lib/generic/create.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ pushd $FW_TARGETDIR >/dev/null
1010
touch mcu_ws/uros/rcl/rcl_yaml_param_parser/COLCON_IGNORE
1111
touch mcu_ws/uros/rclc/rclc_examples/COLCON_IGNORE
1212

13-
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro foxy --skip-keys="$SKIP"
13+
rosdep install -y --from-paths mcu_ws -i mcu_ws --rosdistro $ROS_DISTRO --skip-keys="$SKIP"
1414
popd >/dev/null

0 commit comments

Comments
 (0)