-
Notifications
You must be signed in to change notification settings - Fork 329
44 lines (41 loc) · 1.13 KB
/
ros.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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/[email protected]
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/[email protected]
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