chore: bump px4_msgs to 3.4.0 #776
Workflow file for this run
This file contains hidden or 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
| name: Build and test | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'docs_test' | |
| pull_request: | |
| branches: | |
| - '*' | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| build_and_test: | |
| name: Build and test | |
| runs-on: [runs-on,"runner=${{ vars.RUNSON_CI_BUILDER_DEFAULT_X64 }}","run-id=${{ github.run_id }}"] | |
| container: | |
| image: rostooling/setup-ros-docker:ubuntu-noble-latest | |
| steps: | |
| - name: Setup ROS 2 | |
| uses: ros-tooling/setup-ros@v0.7 | |
| with: | |
| required-ros-distributions: jazzy | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Build and test | |
| id: ros-build | |
| uses: ros-tooling/action-ros-ci@v0.3 | |
| with: | |
| package-name: | |
| import-token: ${{ secrets.GITHUB_TOKEN }} | |
| vcs-repo-file-url: | | |
| $GITHUB_WORKSPACE/dependencies.repos | |
| target-ros2-distro: jazzy | |
| colcon-defaults: | | |
| { | |
| "build": { | |
| "merge-install": true | |
| }, | |
| "test": { | |
| "packages-select-regex": [ | |
| "px4_ros2_cpp" | |
| ], | |
| "ctest-args": [ | |
| "-R", "unit_tests" | |
| ], | |
| "merge-install": true | |
| } | |
| } | |
| # Documentation (sphinx requires the code to be compiled) | |
| - name: Install doxygen & sphinx | |
| run: sudo apt-get update && sudo apt-get install -y doxygen python3-sphinx | |
| - name: Run doxygen | |
| run: ./scripts/run-doxygen.sh | |
| - name: Run sphinx | |
| run: | | |
| ROS_WS_DIR="$(readlink -f ${{ steps.ros-build.outputs.ros-workspace-directory-name }})" | |
| source "$ROS_WS_DIR/install/setup.bash" | |
| make -C python_docs html | |
| cp -r python_docs/_build/html docs/html/python | |
| - name: Deploy | |
| if: github.event_name == 'push' | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs/html | |
| # clang-tidy | |
| - name: install clang tidy | |
| run: | | |
| sudo apt-get install --yes -qq clang-tidy | |
| - name: clang tidy | |
| run: | | |
| ROS_WS_DIR="$(readlink -f ${{ steps.ros-build.outputs.ros-workspace-directory-name }})" | |
| cd "$ROS_WS_DIR" | |
| cd src | |
| cd $(find -name ${{ github.event.repository.name }}|head -1) # the path looks like this: 'src/zlrido15uw/<repo-name>' | |
| echo "Running clang-tidy on $PWD" | |
| ./scripts/run-clang-tidy-on-project.sh "$ROS_WS_DIR"/build |