-
Notifications
You must be signed in to change notification settings - Fork 30
107 lines (104 loc) · 2.94 KB
/
build-test.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: build-test
on:
# Pushes / merges to master
push:
branches:
- master
# On creation and updating of PR
pull_request:
types: [opened, reopened, synchronize]
# Only those targeting master branch
branches:
- master
# Every two days
schedule:
- cron: '0 23 */2 * *'
defaults:
run:
shell: bash
jobs:
build:
continue-on-error: true
strategy:
matrix:
include:
# OSX Build
# TODO: New PR to fix
#- os: macos-11.0
# catkin: OFF
# aikidopy: OFF
# build: XCODE11_CMAKE_RELEASE
# config: ""
# Bionic CMake
# DEPRECATE due to libdart-all-dev
#- os: ubuntu-18.04
# catkin: OFF
# aikidopy: OFF
# type: Release
# build: BIONIC_CMAKE_RELEASE
# config: ""
# Focal CMake
- os: ubuntu-20.04
catkin: OFF
aikidopy: OFF
type: Release
build: FOCAL_CMAKE_RELEASE
config: ""
# Focal CMake Aikidopy
- os: ubuntu-20.04
catkin: OFF
aikidopy: ON
type: Release
build: FOCAL_CMAKE_RELEASE_AIKIDOPY
config: ""
# Focal Catkin
- os: ubuntu-20.04
catkin: ON
aikidopy: OFF
type: Release
build: FOCAL_CATKIN_FULL_RELEASE
config: "-DCMAKE_BUILD_TYPE=Release -DTREAT_WARNINGS_AS_ERRORS=ON"
# Focal Catkin Aikidopy
- os: ubuntu-20.04
catkin: ON
aikidopy: ON
type: Release
build: FOCAL_CATKIN_FULL_RELEASE_AIKIDOPY
config: "-DCMAKE_BUILD_TYPE=Release -DTREAT_WARNINGS_AS_ERRORS=ON -DBUILD_AIKIDOPY=ON"
# Focal Catkin Debug + Codecov
- os: ubuntu-20.04
catkin: ON
aikidopy: OFF
type: Debug
build: FOCAL_CATKIN_DEBUG_CODECOV
config: "-DCMAKE_BUILD_TYPE=Debug -DTREAT_WARNINGS_AS_ERRORS=ON"
runs-on: ${{ matrix.os }}
name: ${{ matrix.build }}
env:
USE_CATKIN: ${{ matrix.catkin }}
BUILD_NAME: ${{ matrix.build }}
CATKIN_CONFIG_OPTIONS: ${{ matrix.config }}
BUILD_AIKIDOPY: ${{ matrix.aikidopy }}
BUILD_TYPE: ${{ matrix.type }}
OS_NAME: ${{ matrix.os }}
DISTRIBUTION: ${{ secrets.DISTRIBUTION }}
REPOSITORY: aikido
SUDO: sudo
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
submodules: recursive
# >1 to suppress Codecov warning
fetch-depth: 2
- name: Before install
run: .ci/before_install.sh
- name: Install
run: .ci/install.sh
- name: Script
run: .ci/script.sh
# Report on failed tests
- name: After failure
if: ${{ failure() }}
run: .ci/after_failure.sh