Skip to content

Commit df3ad7c

Browse files
Update CI with Serial USB build (#126) (#127)
Signed-off-by: Pablo Garrido <pablogs9@gmail.com> (cherry picked from commit e1e2340) Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
1 parent 073adf2 commit df3ad7c

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,18 @@ jobs:
2626
with:
2727
path: micro_ros_zephyr_module
2828

29-
- name: Dependencies
29+
- name: Build
3030
shell: bash
3131
run: |
32+
# Install dependencies
3233
apt update
3334
export DEBIAN_FRONTEND=noninteractive
3435
apt install -y --no-install-recommends wget git cmake ninja-build gperf \
3536
ccache dfu-util device-tree-compiler wget \
3637
python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \
3738
make gcc gcc-multilib g++-multilib libsdl2-dev
39+
40+
# Install Zephyr environment
3841
pip3 install --user -U west
3942
export PATH=~/.local/bin:/github/home/.local/bin:"$PATH"
4043
west init zephyrproject
@@ -57,7 +60,12 @@ jobs:
5760
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
5861
export ZEPHYR_SDK_INSTALL_DIR=$(pwd)/zephyr-sdk-$TOOLCHAIN_VERSION
5962
source zephyrproject/zephyr/zephyr-env.sh
63+
6064
# Installing micro-ROS prerequisites
6165
pip3 install catkin_pkg lark-parser empy colcon-common-extensions
62-
# Building the app
63-
west build -b disco_l475_iot1 micro_ros_zephyr_module
66+
67+
# Build with Serial USB transport
68+
west build -b disco_l475_iot1 micro_ros_zephyr_module -- -DCONFIG_MICROROS_TRANSPORT_SERIAL_USB=y
69+
70+
# Build with Serial transport
71+
west build -b disco_l475_iot1 micro_ros_zephyr_module -- -DCONFIG_MICROROS_TRANSPORT_SERIAL=y

.github/workflows/nightly.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,18 @@ jobs:
3737
path: micro_ros_zephyr_module
3838
branch: ${{ matrix.branch }}
3939

40-
- name: Dependencies
40+
- name: Build
4141
shell: bash
4242
run: |
43+
# Install dependencies
4344
apt update
4445
export DEBIAN_FRONTEND=noninteractive
4546
apt install -y --no-install-recommends wget git cmake ninja-build gperf \
4647
ccache dfu-util device-tree-compiler wget \
4748
python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \
4849
make gcc gcc-multilib g++-multilib libsdl2-dev
50+
51+
# Install Zephyr environment
4952
pip3 install --user -U west
5053
export PATH=~/.local/bin:/github/home/.local/bin:"$PATH"
5154
west init zephyrproject
@@ -68,7 +71,12 @@ jobs:
6871
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
6972
export ZEPHYR_SDK_INSTALL_DIR=$(pwd)/zephyr-sdk-$TOOLCHAIN_VERSION
7073
source zephyrproject/zephyr/zephyr-env.sh
74+
7175
# Installing micro-ROS prerequisites
7276
pip3 install catkin_pkg lark-parser empy colcon-common-extensions
73-
# Building the app
74-
west build -b disco_l475_iot1 micro_ros_zephyr_module
77+
78+
# Build with Serial USB transport
79+
west build -b disco_l475_iot1 micro_ros_zephyr_module -- -DCONFIG_MICROROS_TRANSPORT_SERIAL_USB=y
80+
81+
# Build with Serial transport
82+
west build -b disco_l475_iot1 micro_ros_zephyr_module -- -DCONFIG_MICROROS_TRANSPORT_SERIAL=y

0 commit comments

Comments
 (0)