forked from autowarefoundation/autoware
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.03 KB
/
native-ci.yaml
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
name: Native CI workflow
on:
pull_request:
push:
branches:
- master
jobs:
build-melodic:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] #[ubuntu-latest, self-hosted]
fail-fast: false
container:
image: autoware/autoware:bleedingedge-melodic-base
env:
VCS_FILE: autoware.ai.repos
ROS_DISTRO: melodic
options: --user root
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Prepare repo
run: |
mkdir src
vcs validate < $VCS_FILE
vcs import src/ < $VCS_FILE
rosdep update && apt-get update -qqq
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
- name: Build and test repo
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Debug; \
colcon build --cmake-target tests --cmake-args -DCMAKE_BUILD_TYPE=Debug; \
colcon test; \
colcon test-result --verbose'