-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (45 loc) · 1.37 KB
/
ci.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
name: Ignition RViz CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ignition: ['fortress']
ros: ['rolling']
container:
image: osrf/ros:${{ matrix.ros }}-desktop
env:
IGNITION_VERSION: ${{ matrix.ignition }}
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
apt update -y
apt install -y wget
sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
apt update -y
apt install -y libignition-common4-dev \
libignition-math6-dev \
libignition-rendering6-dev \
libignition-gui6-dev
- name: Setup colcon workspace
id: configure
run: |
cd ..
mkdir -p /home/colcon_ws/src
cp -r gz-rviz /home/colcon_ws/src/
- name: Build project
id: build
run: |
cd /home/colcon_ws/
. /opt/ros/${{ matrix.ros }}/setup.sh
colcon build
- name: Run tests
id: test
run: |
cd /home/colcon_ws/
. /opt/ros/${{ matrix.ros }}/setup.sh
colcon test --event-handlers console_direct+
colcon test-result