File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : API reference generator
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ name :
6+ description : " Manual trigger"
7+ schedule :
8+ - cron : ' 0 6 * * *'
9+
10+ jobs :
11+ generate_api_reference :
12+ runs-on : ubuntu-latest
13+ container : ros:foxy
14+ steps :
15+ - uses : actions/checkout@v2
16+ - name : Get date
17+ id : date
18+ run : echo "::set-output name=date::$(date +'%d-%m-%Y %H:%M')"
19+ - name : Update libraries
20+ run : |
21+ apt update
22+ apt install -y doxygen wget git unzip cmake
23+
24+ pushd /
25+ wget https://github.com/matusnovak/doxybook2/releases/download/v1.3.3/doxybook2-linux-amd64-v1.3.3.zip
26+ unzip doxybook2-linux-amd64-v1.3.3.zip -d doxybook2
27+
28+ mkdir -p ros2_ws/src; cd ros2_ws
29+ git clone -b foxy https://github.com/eProsima/Micro-CDR src/Micro-CDR
30+ git clone -b foxy https://github.com/eProsima/Micro-XRCE-DDS-Client src/Micro-XRCE-DDS-Client
31+ git clone -b foxy https://github.com/micro-ROS/rosidl_typesupport_microxrcedds src/rosidl_typesupport_microxrcedds
32+ git clone -b feature/refactor_microros_api https://github.com/micro-ROS/rmw-microxrcedds src/rmw-microxrcedds
33+
34+ source /opt/ros/$ROS_DISTRO/setup.bash
35+ colcon build --packages-up-to rmw_microxrcedds --cmake-args -DBUILD_DOCUMENTATION=ON
36+ popd
37+
38+ /doxybook2/bin/doxybook2 --input /ros2_ws/build/rmw_microxrcedds/doc/xml --output _includes/rmw_doc -c utils/doxy_config -t utils/doxy_templates
39+ git status
40+ - name : Create Pull Request
41+ uses : peter-evans/create-pull-request@v3
42+ with :
43+ commit-message : micro-ROS API reference auto-update ${{ steps.date.outputs.date }}
44+ title : micro-ROS API reference auto-update ${{ steps.date.outputs.date }}
45+ body : This PR is autogenerated and updates the micro-ROS API reference. Close and reopen to trigger CI.
46+ branch : autoupdate_micro_ros_api_reference
47+ delete-branch : true
48+ base : master
You can’t perform that action at this time.
0 commit comments