-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (78 loc) · 2.42 KB
/
build.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
# Simple set of rules for GitHub actions integration with a ROS project
#
name: Build
on:
push:
branches:
- main
pull_request:
env:
CORTEX_PATH: ${{ github.workspace }}/cortex
jobs:
install-cortex:
runs-on: ubuntu-22.04
steps:
- name: Cache CORTEX
id: cache-cortex
uses: actions/cache@v4
with:
path: ${{ env.CORTEX_PATH }}
key: cortex-${{ runner.os }}-ubuntu-22.04
- name: Install Cortex
if: steps.cache-cortex.outputs.cache-hit != 'true'
run: |
mkdir -p $CORTEX_PATH && cd $CORTEX_PATH
curl -o installation.sh https://raw.githubusercontent.com/grupo-avispa/cortex/development/installation.sh
chmod +x installation.sh
./installation.sh
build-dsr-ros:
runs-on: ubuntu-22.04
needs: install-cortex
steps:
- name: Cache APT Packages
uses: awalsh128/cache-apt-pkgs-action@v1.4.2
with:
packages: qtbase5-dev
- name: Checkout Repository
uses: actions/checkout@v4.1.6
- name: Setup ROS 2
uses: ros-tooling/setup-ros@0.7.5
- name: Restore CORTEX cache
id: restore-cache-cortex
uses: actions/cache@v4
with:
path: ${{ env.CORTEX_PATH }}
key: cortex-${{ runner.os }}-ubuntu-22.04
- name: Restore CORTEX headers
if: steps.restore-cache-cortex.outputs.cache-hit == 'true'
run: |
cd $CORTEX_PATH/cortex/build && make install
- name: Build packages
uses: ros-tooling/action-ros-ci@0.3.13
with:
package-name:
dsr_ros
dsr_agents
dsr_bridge
dsr_msgs
dsr_rqt_plugin
dsr_util
target-ros2-distro: humble
colcon-defaults: |
{
"build": {
"mixin": ["coverage-gcc", "coverage-pytest"]
},
"test": {
"mixin": ["coverage-pytest"]
}
}
skip-tests: false
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.4.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ros_ws/lcov/total_coverage.info,ros_ws/coveragepy/.coverage
flags: unittests
name: codecov-umbrella
slug: grupo-avispa/dsr_ros