generated from leggedrobotics/ros_best_practices
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.08 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
45
46
47
48
49
50
51
52
name: ROS Build
on:
push:
branches: [ master ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ros:noetic
steps:
# performance improvements, see https://abbbi.github.io/actions/
- name: Disable man-db update
run: sudo rm -f /var/lib/man-db/auto-update
# end of performance improvements
- name: Environment Info
run: |
pwd
uname -r
lsb_release -a
- name: Install Catkin
run: |
apt-get update
apt-get install -y python3-catkin-tools python3-osrf-pycommon tree
- uses: actions/checkout@v2
with:
path: src/ros_best_practices
- name: Rosdep
run: |
rosdep update
rosdep install --from-paths src --ignore-src -r -y
- name: Build (Release)
shell: bash
run: |
source /opt/ros/noetic/setup.bash
tree
catkin init
catkin build --cmake-args -DCMAKE_BUILD_TYPE=Release
- name: Test
shell: bash
run: |
source devel/setup.bash
catkin run_tests