-
Notifications
You must be signed in to change notification settings - Fork 26
47 lines (46 loc) · 1.15 KB
/
build.yaml
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
---
name: build
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
container:
image: robotnik/ros:humble-builder
options: --user root
steps:
- uses: actions/checkout@v3
with:
path: src/repo
- name: Prepare workspace
run: |
echo ::group::Install dependencies
local_deps.sh
rosdep update --include-eol-distros
apt-get update
rosdep install --from-paths src --ignore-src -r -y -t build -t test
echo ::endgroup::
echo ::group::Generate whitelist
generate_whitelist.sh -p src/repo
echo ::endgroup::
- name: Build
run: |
echo ::group::Build
compile_workspace.sh
echo ::endgroup::
- name: Test
run: |
test_workspace.sh
- name: Generate artifacts
run: |
echo ::group::Generate artifacts
generate_debs.sh
echo ::endgroup::
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: |
debs/*.deb
log/**/*