This repository was archived by the owner on Mar 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
53 lines (43 loc) · 1.34 KB
/
cuda-ci.yaml
File metadata and controls
53 lines (43 loc) · 1.34 KB
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
name: CUDA 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-cuda
env:
VCS_FILE: build_depends.repos
ROS_DISTRO: melodic
options: --user root
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Prepare repo
run: |
mkdir -p src_tmp/ && mv `find -maxdepth 1 -not -name . -not -name src_tmp -not -name $VCS_FILE` src_tmp/ && mv src_tmp/ 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
mkdir -p depends_ws/src
mv src/depends depends_ws/src
- name: Build depends repos
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
cd depends_ws; colcon build; cd ..'
- name: Build and test repo
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
source depends_ws/install/local_setup.bash; \
colcon build; \
colcon build --cmake-target tests; \
colcon test; \
colcon test-result --verbose'