-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (38 loc) · 1.89 KB
/
cpp_ubuntu20_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
name: C++ Ubuntu 20.04
on:
pull_request:
branches:
- "master"
jobs:
build:
runs-on: [self-hosted, linux]
strategy:
fail-fast: false
matrix:
config:
- {rosdistro: 'noetic', container: 'ros:noetic-ros-base-focal', gcc: '9'}
- {rosdistro: 'noetic', container: 'ros:noetic-ros-base-focal', gcc: '10'}
container: ${{ matrix.config.container }}
steps:
- uses: actions/checkout@v3
name: Checkout lpp
with:
repository: ethz-asl/lpp
token: ${{ secrets.PAT }}
path: catkin_ws/src/lpp
- name: Install newest git version
run: sudo apt update && sudo apt-get install -y software-properties-common && sudo add-apt-repository -y ppa:git-core/ppa && sudo apt-get update && sudo apt-get install -y git
- name: Install GCC version ${{ matrix.config.gcc}}
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa -y && sudo apt update && sudo apt install -y gcc-${{ matrix.config.gcc}} g++-${{ matrix.config.gcc}} && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.config.gcc}} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.config.gcc}}
- name: Install ROS dependencies
run: sudo apt install -y ros-noetic-rosbash
- name: Install catkin tools
run: sudo apt install -y python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential python3-catkin-tools
- name: Install system dependencies
run: sudo apt install -y libgoogle-glog-dev
- name: Build lpp
run: source /opt/ros/noetic/setup.bash && catkin build lpp && source ${GITHUB_WORKSPACE}/catkin_ws/devel/setup.bash
working-directory: catkin_ws
shell: bash
- name: Run unittests
run: rosrun lpp test_lpp && rosrun lpp test_glog && rosrun lpp test_lpp_custom && rosrun lpp test_nolog && rosrun lpp test_default && rosrun lpp test_roslog