File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
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
Original file line number Diff line number Diff 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
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
You can’t perform that action at this time.
0 commit comments