Style change (#229) #197
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: ROS nodes | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
ros1_node: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
release: [noetic] | |
container: osrf/ros:${{ matrix.release }}-desktop-full | |
steps: | |
- name: Setup cmake | |
uses: jwlawson/actions-setup-cmake@v1.13 | |
with: | |
cmake-version: "3.25.x" | |
- name: Prepare catkin_ws | |
run: mkdir -p catkin_ws/src | |
- uses: actions/checkout@v3 | |
with: | |
path: catkin_ws/src | |
- name: Run catkin_make | |
run: source /opt/ros/${{ matrix.release }}/setup.bash && cd catkin_ws && catkin_make | |
shell: bash | |
ros2_node: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
release: [humble, iron] | |
container: osrf/ros:${{ matrix.release }}-desktop | |
steps: | |
- name: Setup cmake | |
uses: jwlawson/actions-setup-cmake@v1.13 | |
with: | |
cmake-version: "3.25.x" | |
- uses: actions/checkout@v3 | |
- name: Run colcon | |
run: source /opt/ros/${{ matrix.release }}/setup.bash && colcon build --event-handlers console_direct+ | |
shell: bash |