This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
Fix: adjust for changed heartbeat::Publisher API. #162
Workflow file for this run
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
name: ros2 | |
on: | |
push: | |
paths: | |
- ".github/workflows/ros2.yml" | |
- "include/**" | |
- "launch/**" | |
- "src/**" | |
- "CMakeLists.txt" | |
- "package.xml" | |
pull_request: | |
paths: | |
- ".github/workflows/ros2.yml" | |
- "include/**" | |
- "launch/**" | |
- "src/**" | |
- "CMakeLists.txt" | |
- "package.xml" | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
name: Build on ros2 ${{ matrix.ros_distro }} | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
ros_distro: [ humble ] | |
steps: | |
- uses: ros-tooling/[email protected] | |
with: | |
required-ros-distributions: ${{ matrix.ros_distro }} | |
- name: Prepare ROS2 workspace | |
run: | | |
mkdir -p ${{github.workspace}}/ros2_ws/src | |
- uses: actions/checkout@v3 | |
with: | |
repository: '107-systems/ros2_heartbeat' | |
path: 'ros2_ws/src/ros2_heartbeat' | |
- uses: actions/checkout@v3 | |
with: | |
repository: 107-systems/ros2_loop_rate_monitor | |
path: 'ros2_ws/src/ros2_loop_rate_monitor' | |
- uses: actions/checkout@v3 | |
with: | |
repository: '107-systems/ros2_cyphal_bridge' | |
path: 'ros2_ws/src/ros2_cyphal_bridge' | |
submodules: true | |
fetch-depth: 1 | |
- name: colcon build | |
run: | | |
source /opt/ros/${{ matrix.ros_distro }}/setup.bash | |
cd ${{github.workspace}}/ros2_ws | |
colcon build --event-handlers console_direct+ | |
shell: bash |