-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reusable workflow for rosdoc2 (#48)
* Add reusable wf for rosdoc2 check * Use package_path_list * Add for loop if there are more packages * Use venv
- Loading branch information
1 parent
8cb6085
commit a0cd435
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: rosdoc2 | ||
# author: Christoph Froehlich <[email protected]> | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
env: | ||
# this will be src/{repo-owner}/{repo-name} | ||
path: src/${{ github.repository }} | ||
steps: | ||
- uses: ros-tooling/[email protected] | ||
- name: Install rosdoc2 and deps | ||
run: | | ||
sudo apt-get update | ||
sudo apt install -y python3-pip git doxygen graphviz | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
git clone https://github.com/ros-infrastructure/rosdoc2.git | ||
pip install --upgrade rosdoc2/ | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
path: ${{ env.path }} | ||
- id: package_list_action | ||
uses: ros-controls/ros2_control_ci/.github/actions/set-package-list@master | ||
with: | ||
path: ${{ env.path }} | ||
- name: run rosdoc2 | ||
run: | | ||
source .venv/bin/activate | ||
for path in ${{ steps.package_list_action.outputs.package_path_list }} | ||
do | ||
rosdoc2 build --package-path $path | ||
done |