forked from ros-drivers/velodyne
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1022 Bytes
/
basic-build-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
name: Basic Build Workflow
on:
- pull_request
- push
jobs:
build-noetic:
runs-on: ubuntu-latest
strategy:
fail-fast: false
container:
image: ros:noetic-perception
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Create Workspace
run: |
mkdir src_tmp
mv `find -maxdepth 1 -not -name . -not -name src_tmp` src_tmp/
mv src_tmp/ src/
cd src
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
catkin_init_workspace'
- name: Install Prerequisites
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
apt-get update && rosdep update; \
rosdep install --from-paths src --ignore-src -y'
- name: Build Workspace
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
catkin_make'
- name: Run Tests
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
catkin_make run_tests; \
catkin_test_results --verbose'