-
Notifications
You must be signed in to change notification settings - Fork 1.2k
48 lines (39 loc) · 1013 Bytes
/
catkin-build.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
name: Build
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
strategy:
matrix:
container: ["ros:melodic", "ros:noetic"]
runs-on: ubuntu-20.04
container: ${{ matrix.container }}
steps:
- name: update git
run: |
apt-get update
apt-get install -y software-properties-common
add-apt-repository ppa:git-core/ppa
apt-get update
apt-get install -y git
- uses: actions/checkout@v2
with:
path: src/darknet_ros
submodules: 'recursive'
- name: rosdep install
run: |
apt-get update
rosdep update
rosdep install --from-paths src --ignore-src -r -y
- name: catkin_make
shell: bash
run: |
source /opt/ros/$ROS_DISTRO/setup.bash
catkin_make -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: catkin_make run_tests
shell: bash
run: |
source /opt/ros/$ROS_DISTRO/setup.bash
catkin_make run_tests
catkin_test_results