|
1 | 1 | name: Nightly |
2 | 2 |
|
3 | 3 | on: |
4 | | - workflow_dispatch: |
5 | | - inputs: |
6 | | - name: |
7 | | - description: "Manual trigger" |
8 | 4 | schedule: |
9 | | - - cron: '0 4 * * *' |
| 5 | + - cron: '0 4 * * *' |
| 6 | + workflow_dispatch: |
10 | 7 |
|
11 | 8 | jobs: |
12 | 9 | micro_ros_idf: |
13 | | - runs-on: ubuntu-latest |
14 | 10 | strategy: |
15 | 11 | fail-fast: false |
16 | 12 | matrix: |
17 | | - branch: [rolling, jazzy, humble] |
18 | | - idf_target: [ esp32, esp32s2, esp32c3, esp32s3, esp32c6] |
19 | | - idf_version: [ "espressif/idf:release-v4.4", "espressif/idf:release-v5.2" ] |
20 | | - exclude: |
21 | | - # Skip IDF v4 + ESP32C6 combination |
22 | | - - idf_target: esp32c6 |
23 | | - idf_version: espressif/idf:release-v4.4 |
24 | | - # Skip IDF v4 for rolling and kilted |
25 | | - - branch: rolling |
26 | | - idf_version: espressif/idf:release-v4.4 |
27 | | - - branch: kilted |
28 | | - idf_version: espressif/idf:release-v4.4 |
29 | | - |
30 | | - |
31 | | - container: |
32 | | - image: ${{ matrix.idf_version }} |
33 | | - |
34 | | - steps: |
35 | | - - uses: actions/checkout@v2 |
36 | | - with: |
37 | | - path: micro_ros_espidf_component |
38 | | - ref: ${{ matrix.branch }} |
39 | | - |
40 | | - - name: Dependencies |
41 | | - shell: bash |
42 | | - run: | |
43 | | - apt update |
44 | | - export DEBIAN_FRONTEND=noninteractive |
45 | | - apt install -y git python3-pip |
46 | | - . $IDF_PATH/export.sh |
47 | | - pip3 install catkin_pkg lark-parser empy==3.3.4 colcon-common-extensions |
48 | | - # This line avoids the error when using Python < 3.7 https://importlib-resources.readthedocs.io/en/latest/ |
49 | | - pip3 install importlib-resources |
50 | | - # this installs the modules also for global python interpreter, needed for IDF v5 |
51 | | - /usr/bin/pip3 install catkin_pkg lark-parser empy==3.3.4 colcon-common-extensions importlib-resources |
52 | | -
|
53 | | - # This line can be removed when https://github.com/colcon/colcon-python-setup-py/issues/56 is solved |
54 | | - - name: Patch setuptools |
55 | | - shell: bash |
56 | | - if: matrix.idf_version == 'espressif/idf:release-v4.4' |
57 | | - run: | |
58 | | - . $IDF_PATH/export.sh |
59 | | - pip3 install setuptools==68.1.2 |
60 | | -
|
61 | | - - name: Build sample - int32_publisher |
62 | | - shell: bash |
63 | | - run: | |
64 | | - . $IDF_PATH/export.sh |
65 | | - cd micro_ros_espidf_component/examples/int32_publisher |
66 | | - idf.py set-target ${{ matrix.idf_target }} |
67 | | - idf.py build |
68 | | -
|
69 | | - - name: Build sample - low_consumption |
70 | | - shell: bash |
71 | | - if: matrix.idf_target != 'esp32c3' && matrix.idf_target != 'esp32s3' && matrix.idf_target != 'esp32c6' |
72 | | - run: | |
73 | | - . $IDF_PATH/export.sh |
74 | | - cd micro_ros_espidf_component/examples/low_consumption |
75 | | - idf.py set-target ${{ matrix.idf_target }} |
76 | | - idf.py build |
77 | | -
|
78 | | - - name: Build sample - handle_static_types |
79 | | - shell: bash |
80 | | - run: | |
81 | | - . $IDF_PATH/export.sh |
82 | | - cd micro_ros_espidf_component/examples/handle_static_types |
83 | | - idf.py set-target ${{ matrix.idf_target }} |
84 | | - idf.py build |
85 | | -
|
86 | | - - name: Build sample - int32_publisher_custom_transport |
87 | | - shell: bash |
88 | | - run: | |
89 | | - . $IDF_PATH/export.sh |
90 | | - cd micro_ros_espidf_component |
91 | | - make -f libmicroros.mk clean |
92 | | - sed -i 's/DRMW_UXRCE_TRANSPORT=udp/DRMW_UXRCE_TRANSPORT=custom/' colcon.meta |
93 | | - cd examples/int32_publisher_custom_transport |
94 | | - idf.py set-target ${{ matrix.idf_target }} |
95 | | - idf.py build |
96 | | -
|
97 | | - - name: Build sample - multithread_publisher |
98 | | - shell: bash |
99 | | - run: | |
100 | | - . $IDF_PATH/export.sh |
101 | | - cd micro_ros_espidf_component |
102 | | - make -f libmicroros.mk clean |
103 | | - sed -i 's/DRMW_UXRCE_TRANSPORT=udp/DRMW_UXRCE_TRANSPORT=custom/' colcon.meta |
104 | | - cd examples/multithread_publisher |
105 | | - idf.py set-target ${{ matrix.idf_target }} |
106 | | - idf.py build |
107 | | -
|
108 | | - - name: EmbeddedRTPS |
109 | | - if: ${{ matrix.branch == 'humble' }} |
110 | | - shell: bash |
111 | | - run: | |
112 | | - . $IDF_PATH/export.sh |
113 | | - cd micro_ros_espidf_component |
114 | | - make -f libmicroros.mk clean |
115 | | - cd examples/int32_publisher_embeddedrtps |
116 | | - idf.py set-target ${{ matrix.idf_target }} |
117 | | - idf.py build |
| 13 | + branch: [humble, jazzy, kilted, rolling] |
| 14 | + uses: ./.github/workflows/ci.yml |
| 15 | + with: |
| 16 | + branch: ${{ matrix.branch }} |
0 commit comments