From 6285cf882a8e94622f6079a3cd2b94ec4a7d7f67 Mon Sep 17 00:00:00 2001 From: Pablo Garrido Date: Tue, 24 Oct 2023 15:47:31 +0200 Subject: [PATCH] Update CI with Serial USB build (#126) Signed-off-by: Pablo Garrido (cherry picked from commit e1e23407664625c5cb145c791561007fe6d51df9) --- .github/workflows/ci.yml | 14 +++++++++++--- .github/workflows/nightly.yml | 14 +++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6778994..34ab831 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,15 +26,18 @@ jobs: with: path: micro_ros_zephyr_module - - name: Dependencies + - name: Build 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..859b77d 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -37,15 +37,18 @@ jobs: path: micro_ros_zephyr_module branch: ${{ matrix.branch }} - - name: Dependencies + - name: Build 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