-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (43 loc) · 1.22 KB
/
ubuntu_focal.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
49
name: Ubuntu-Focal
on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 5 * * *'
jobs:
ci:
name: Ubuntu-Focal
runs-on: ubuntu-latest
env:
PROJECT_DIR: src/ros_scxml
steps:
- name: Prepare workspace
working-directory: ..
run: |
mkdir -p ${{ env.PROJECT_DIR }}
- uses: actions/checkout@v1
with:
path: ${{ env.PROJECT_DIR }}
- name: Install dependencies
working-directory: ../..
run: |
sudo apt update -q
sudo apt install -q -y clang-tidy python3 python3-pip
sudo pip3 install -q --upgrade pip
sudo pip3 install -q colcon-common-extensions vcstool rosdep
vcs import src < ${{ env.PROJECT_DIR }}/dependencies.repos
sudo rosdep init -q
rosdep update -q
rosdep install --from-paths src --ignore-src -r -y -q
sudo apt install -q -y libqt5scxml5-dev libqt5scxml5-bin
- name: Build
working-directory: ../..
run: |
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON
- name: Test
working-directory: ../..
run: |
colcon test
colcon test-result