-
Notifications
You must be signed in to change notification settings - Fork 37
56 lines (52 loc) · 1.49 KB
/
ubuntu.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
50
51
52
53
54
55
56
name: Ubuntu
on:
push:
branches:
- master
- 'dev**'
pull_request:
paths:
- 'tesseract**'
- '.github/workflows/ubuntu.yml'
- '**.repos'
schedule:
- cron: '0 5 * * *'
release:
types:
- released
jobs:
ci:
name: ${{ matrix.distro }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro: [focal, jammy]
container:
image: ghcr.io/tesseract-robotics/trajopt:${{ matrix.distro }}-0.21
env:
CCACHE_DIR: "$GITHUB_WORKSPACE/${{ matrix.distro }}/.ccache"
DEBIAN_FRONTEND: noninteractive
TZ: Etc/UTC
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: target_ws/src
- name: Install Depends
shell: bash
run: |
apt update
apt upgrade -y
apt install -y wget software-properties-common
add-apt-repository ppa:levi-armstrong/tesseract-robotics
apt install -y libompl-dev taskflow
- name: Build and Tests
uses: tesseract-robotics/colcon-action@v2
with:
before-script: source /opt/tesseract/install/setup.bash && source /opt/trajopt/install/setup.bash
ccache-prefix: ${{ matrix.distro }}
vcs-file: dependencies.repos
upstream-args: --cmake-args -DCMAKE_BUILD_TYPE=Release
target-path: target_ws/src
target-args: --cmake-args -DCMAKE_BUILD_TYPE=Debug -DTESSERACT_ENABLE_TESTING=ON