1212
1313 micro_ros_zephyr_module :
1414 runs-on : ubuntu-latest
15- container :
16- image : zephyrprojectrtos/ci:v0.26.17
17- options : --user root
18- env :
19- CMAKE_PREFIX_PATH : /opt/toolchains
2015 strategy :
2116 fail-fast : false
2217 matrix :
@@ -26,27 +21,37 @@ jobs:
2621 with :
2722 path : micro_ros_zephyr_module
2823
29- - name : Build
30- shell : bash
24+ - name : Free disk space
3125 run : |
32- # Zephyr setup
33- apt -y update
34- west init
35- cd zephyr
36- git checkout ${{ matrix.zephyr_version }}
37- cd ..
38- west update --narrow
39-
40- # Installing micro-ROS prerequisites
41- pip3 install catkin_pkg lark-parser empy colcon-common-extensions
42-
43- if [[ ${{ github.ref_name }} == "humble" ]] || [[ ${{ github.head_ref }} == *"humble"* ]]; then
44- # Use empy version 3.3.4 for Humble
45- pip3 install empy==3.3.4
46- fi
47-
48- # Build with Serial USB transport
49- west build -b disco_l475_iot1 $GITHUB_WORKSPACE/micro_ros_zephyr_module -p -- -DCONFIG_MICROROS_TRANSPORT_SERIAL_USB=y
50-
51- # Build with Serial transport
52- west build -b disco_l475_iot1 $GITHUB_WORKSPACE/micro_ros_zephyr_module -p -- -DCONFIG_MICROROS_TRANSPORT_SERIAL=y
26+ sudo rm -rf /usr/share/dotnet
27+ sudo rm -rf /usr/local/lib/android
28+ sudo rm -rf /opt/ghc
29+ sudo docker image prune --all --force
30+
31+ - name : Build
32+ uses : addnab/docker-run-action@v3
33+ with :
34+ image : zephyrprojectrtos/ci:v0.26.17
35+ options : --user root -v ${{ github.workspace }}:/github/workspace -w /github/workspace -e CMAKE_PREFIX_PATH=/opt/toolchains
36+ run : |
37+ # Zephyr setup
38+ apt -y update
39+ west init
40+ cd zephyr
41+ git checkout ${{ matrix.zephyr_version }}
42+ cd ..
43+ west update --narrow
44+
45+ # Installing micro-ROS prerequisites
46+ pip3 install catkin_pkg lark-parser empy colcon-common-extensions
47+
48+ if [[ ${{ github.ref_name }} == "humble" ]] || [[ ${{ github.head_ref }} == *"humble"* ]]; then
49+ # Use empy version 3.3.4 for Humble
50+ pip3 install empy==3.3.4
51+ fi
52+
53+ # Build with Serial USB transport
54+ west build -b disco_l475_iot1 /github/workspace/micro_ros_zephyr_module -p -- -DCONFIG_MICROROS_TRANSPORT_SERIAL_USB=y
55+
56+ # Build with Serial transport
57+ west build -b disco_l475_iot1 /github/workspace/micro_ros_zephyr_module -p -- -DCONFIG_MICROROS_TRANSPORT_SERIAL=y
0 commit comments