From 6bcb732d22649aef032814ebaffc12f5c4e90e81 Mon Sep 17 00:00:00 2001 From: Pablo Garrido Date: Tue, 24 Oct 2023 15:35:04 +0200 Subject: [PATCH] Update CI with Serial USB build Signed-off-by: Pablo Garrido --- .github/workflows/ci.yml | 12 ++++++++++-- .github/workflows/nightly.yml | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6778994..51ea728 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,12 +29,15 @@ jobs: - name: Dependencies shell: bash run: | + # Install dependencies apt update export DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends wget git cmake ninja-build gperf \ ccache dfu-util device-tree-compiler wget \ python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \ make gcc gcc-multilib g++-multilib libsdl2-dev + + # Install Zephyr environment pip3 install --user -U west export PATH=~/.local/bin:/github/home/.local/bin:"$PATH" west init zephyrproject @@ -57,7 +60,12 @@ jobs: export ZEPHYR_TOOLCHAIN_VARIANT=zephyr export ZEPHYR_SDK_INSTALL_DIR=$(pwd)/zephyr-sdk-$TOOLCHAIN_VERSION source zephyrproject/zephyr/zephyr-env.sh + # Installing micro-ROS prerequisites pip3 install catkin_pkg lark-parser empy colcon-common-extensions - # Building the app - west build -b disco_l475_iot1 micro_ros_zephyr_module + + # Build with Serial USB transport + west build -b disco_l475_iot1 micro_ros_zephyr_module -- -DCONFIG_MICROROS_TRANSPORT_SERIAL_USB=y + + # Build with Serial transport + west build -b disco_l475_iot1 micro_ros_zephyr_module -- -DCONFIG_MICROROS_TRANSPORT_SERIAL=y diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 5cd5ca7..3ab80b8 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -40,12 +40,15 @@ jobs: - name: Dependencies shell: bash run: | + # Install dependencies apt update export DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends wget git cmake ninja-build gperf \ ccache dfu-util device-tree-compiler wget \ python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \ make gcc gcc-multilib g++-multilib libsdl2-dev + + # Install Zephyr environment pip3 install --user -U west export PATH=~/.local/bin:/github/home/.local/bin:"$PATH" west init zephyrproject @@ -68,7 +71,12 @@ jobs: export ZEPHYR_TOOLCHAIN_VARIANT=zephyr export ZEPHYR_SDK_INSTALL_DIR=$(pwd)/zephyr-sdk-$TOOLCHAIN_VERSION source zephyrproject/zephyr/zephyr-env.sh + # Installing micro-ROS prerequisites pip3 install catkin_pkg lark-parser empy colcon-common-extensions - # Building the app - west build -b disco_l475_iot1 micro_ros_zephyr_module + + # Build with Serial USB transport + west build -b disco_l475_iot1 micro_ros_zephyr_module -- -DCONFIG_MICROROS_TRANSPORT_SERIAL_USB=y + + # Build with Serial transport + west build -b disco_l475_iot1 micro_ros_zephyr_module -- -DCONFIG_MICROROS_TRANSPORT_SERIAL=y