forked from ANYbotics/grid_map
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.3 KB
/
ros-build-test.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
name: Build and Test Grid Map
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
# build both Debug and Release mode
strategy:
fail-fast: false
matrix:
build_type: [ Release ]
# environment: regular Ubuntu with a vanilla ROS container
runs-on: ubuntu-latest
container:
image: ros:noetic
steps:
- name: Environment Info
run: |
pwd
uname -r
lsb_release -a
- name: System deps
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y git libeigen3-dev ninja-build keyboard-configuration
- uses: actions/checkout@v2
with:
path: src/grid_map
- name: Rosdep
run: |
rosdep update
rosdep install --from-paths src --ignore-src -r -y
- name: Build (${{ matrix.build_type }})
shell: bash
run: |
source /opt/ros/noetic/setup.bash
catkin_make_isolated --use-ninja --merge --only-pkg-with-deps grid_map --cmake-args -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Test
shell: bash
run: |
source devel_isolated/setup.bash
catkin_make_isolated --use-ninja --merge --only-pkg-with-deps grid_map --catkin-make-args run_tests
catkin_test_results