-
Notifications
You must be signed in to change notification settings - Fork 12
69 lines (65 loc) · 2.67 KB
/
ubuntu_20_04.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Noetic 20.04 ROS CI
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
env:
ACCEPT_EULA: true
ROS_CI_DESKTOP: "`lsb_release -cs`" # e.g. [trusty|xenial|...]
ROS_DISTRO: noetic
steps:
- name: git clone git@github.com:lucasw/screen_grab
uses: actions/checkout@v2
with:
path: catkin_ws/src/screen_grab
- name: Install ROS
run: |
sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP main\" > /etc/apt/sources.list.d/ros-latest.list"
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt-get update -qq
sudo apt-get install dpkg
sudo apt-get install -y catkin-lint
sudo apt-get install -y python3-catkin-pkg
sudo apt-get install -y python3-catkin-tools
sudo apt-get install -y python3-osrf-pycommon
sudo apt-get install -y python3-rosdep
sudo apt-get install -y python3-wstool
sudo apt-get install -y libboost-dev
# sudo apt-get install -y libeigen3-dev
# sudo apt-get install -y libyaml-cpp-dev
sudo apt-get install -y ros-cmake-modules
sudo apt-get install -y ros-$ROS_DISTRO-ros-base
source /opt/ros/$ROS_DISTRO/setup.bash
# Prepare rosdep to install dependencies.
sudo rosdep init
rosdep update --include-eol-distros # Support EOL distros.
- name: Install ROS additional packages with rosdep
run: |
source /opt/ros/$ROS_DISTRO/setup.bash
cd catkin_ws
rosdep install --from-paths src --ignore-src -r -s # do a dry-run first
rosdep install --from-paths src --ignore-src -r -y
- name: build in install mode
run: |
source /opt/ros/$ROS_DISTRO/setup.bash
cd catkin_ws
catkin config --install --cmake-args -DCMAKE_BUILD_TYPE=Release
catkin build --no-status
source install/setup.bash
- name: catkin lint
run: |
cd catkin_ws
LINT_CFG="-W2 --error unsorted_list --ignore uninstalled_script --error launch_depend --error description_meaningless"
catkin_lint src $LINT_CFG
- name: build in devel mode
run: |
source /opt/ros/$ROS_DISTRO/setup.bash
cd catkin_ws
rm -rf .catkin_tools build devel install logs
catkin build --no-status
source devel/setup.bash
catkin build
- name: lint
run: |
cd catkin_ws
catkin build screen_grab --no-deps --catkin-make-args roslint