updates project to work with zephyr v4.0.x (backport #146) #206
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| name: | |
| description: "Manual trigger" | |
| pull_request: | |
| branches: ["rolling", "jazzy", "humble"] | |
| jobs: | |
| micro_ros_zephyr_module: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: zephyrprojectrtos/ci:v0.26.17 | |
| options: --user root | |
| env: | |
| CMAKE_PREFIX_PATH: /opt/toolchains | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| zephyr_version: ["v4.0.0", "v4.1.0"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: micro_ros_zephyr_module | |
| - name: Build | |
| shell: bash | |
| run: | | |
| # Zephyr setup | |
| apt -y update | |
| west init | |
| cd zephyr | |
| git checkout ${{ matrix.zephyr_version }} | |
| cd .. | |
| west update --narrow | |
| # Installing micro-ROS prerequisites | |
| pip3 install catkin_pkg lark-parser empy colcon-common-extensions | |
| if [ ${{ github.ref_name }} == "humble" ] || [ ${{ github.head_ref }} == "humble" ]; then | |
| # Use empy version 3.3.4 for Humble | |
| pip3 install empy==3.3.4 | |
| fi | |
| # Build with Serial USB transport | |
| west build -b disco_l475_iot1 $GITHUB_WORKSPACE/micro_ros_zephyr_module -p -- -DCONFIG_MICROROS_TRANSPORT_SERIAL_USB=y | |
| # Build with Serial transport | |
| west build -b disco_l475_iot1 $GITHUB_WORKSPACE/micro_ros_zephyr_module -p -- -DCONFIG_MICROROS_TRANSPORT_SERIAL=y | |