Skip to content

Commit

Permalink
Add multithread to CI (#238) (#240)
Browse files Browse the repository at this point in the history
* Add multithread to CI

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

* Fix multithread example

* Override esp_macros fro micro-ROS build

---------

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>
(cherry picked from commit 8d6b8d4)

Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
  • Loading branch information
mergify[bot] and pablogs9 committed Apr 1, 2024
1 parent 2b541f8 commit 8c04fee
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ jobs:
idf.py set-target ${{ matrix.idf_target }}
idf.py build
- name: Build sample - multithread_publisher
shell: bash
run: |
. $IDF_PATH/export.sh
cd micro_ros_espidf_component
make -f libmicroros.mk clean
sed -i 's/DRMW_UXRCE_TRANSPORT=udp/DRMW_UXRCE_TRANSPORT=custom/' colcon.meta
cd examples/multithread_publisher
idf.py set-target ${{ matrix.idf_target }}
idf.py build
- name: EmbeddedRTPS
shell: bash
run: |
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ jobs:
idf.py set-target ${{ matrix.idf_target }}
idf.py build
- name: Build sample - handle_static_types
shell: bash
run: |
. $IDF_PATH/export.sh
cd micro_ros_espidf_component/examples/handle_static_types
idf.py set-target ${{ matrix.idf_target }}
idf.py build
- name: Build sample - int32_publisher_custom_transport
shell: bash
run: |
Expand All @@ -76,6 +84,17 @@ jobs:
idf.py set-target ${{ matrix.idf_target }}
idf.py build
- name: Build sample - multithread_publisher
shell: bash
run: |
. $IDF_PATH/export.sh
cd micro_ros_espidf_component
make -f libmicroros.mk clean
sed -i 's/DRMW_UXRCE_TRANSPORT=udp/DRMW_UXRCE_TRANSPORT=custom/' colcon.meta
cd examples/multithread_publisher
idf.py set-target ${{ matrix.idf_target }}
idf.py build
- name: EmbeddedRTPS
if: ${{ matrix.branch == 'humble' }}
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions include_override/FreeRTOS.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Include proper path to FreeRTOS header file
#include "freertos/FreeRTOS.h"
1 change: 1 addition & 0 deletions include_override/esp_macros.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// This is very overkill, but it's a workaround for the fact that the ESP_STATIC_ASSERT fails when building micro-ROS in IDF >v5.0.0
2 changes: 2 additions & 0 deletions include_override/semphr.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Include proper path to FreeRTOS header file
#include "freertos/semphr.h"

0 comments on commit 8c04fee

Please sign in to comment.