Skip to content

Update cmake and python lib #33

Update cmake and python lib

Update cmake and python lib #33

Workflow file for this run

name: PlatformIO Build Workflow
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-20.04
env:
CATKIN_WS: /home/runner/work/catkin_ws
steps:
- uses: actions/checkout@v2
- name: Setup ROS
uses: ros-tooling/[email protected]
with:
required-ros-distributions: noetic
- name: Install catkin tool
run: sudo apt-get install python3-catkin-tools
- name: Update pip and install pip package
run: |
pip3 install pip --upgrade
pip3 install pyopenssl --upgrade
pip3 install platformio
- name: Init workspace
run: |
source /opt/ros/noetic/setup.bash
mkdir -p ${CATKIN_WS}/src
ln -s ${GITHUB_WORKSPACE} ${CATKIN_WS}/src/
- name: pre build
run: |
source /opt/ros/noetic/setup.bash
rosdep update
rosdep install -i -y --from-paths ./
- name: build
run: |
source /opt/ros/noetic/setup.bash
cd ${CATKIN_WS}
catkin build
- name: Update ros_lib
run: |
source ${CATKIN_WS}/devel/setup.bash
rm -rf $(rospack find esp_now_ros)/ros_lib
rosrun rosserial_arduino make_libraries.py $(rospack find esp_now_ros)/ros_lib
- name: build sketches esp_now_ros
run: |
source ${CATKIN_WS}/devel/setup.bash
find $(rospack find esp_now_ros)/sketchbooks -maxdepth 1 -type d | while read dir; do
if [ "$dir" != "$(rospack find esp_now_ros)/sketchbooks" ]; then
echo "Building $dir"
pio run -d $dir
fi
done