-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.3 KB
/
ci.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: CI
on:
push:
paths:
- 'src/**'
- 'CMakeLists.txt'
pull_request:
paths:
- 'src/**'
- 'CMakeLists.txt'
workflow_dispatch:
jobs:
build:
name: "Build Project"
runs-on: ubuntu-latest
steps:
- run: echo '::echo::on'
- name: "Get PCL"
run: |
sudo apt-get update && sudo apt-get install libpcl-dev
- name: "Checkout"
uses: actions/checkout@main
with:
submodules: recursive
- name: "Build/Install Stage 1"
run: |
cmake . -B ./cmake-build -Dsickperception_MULTISTAGE_STEP=0
cmake --build ./cmake-build --target install --config Release --parallel $(nproc)
- name: "Build/Install Stage 2"
run: |
cmake . -B ./cmake-build -Dsickperception_MULTISTAGE_STEP=1
cmake --build ./cmake-build --target install --config Release --parallel $(nproc)
- name: "Inspect Install"
run: |
cd install
ls -l -R
# - name: "Zip Artifacts"
# run: |
# sudo apt-get install zip
# zip -r build.zip install
- name: "Upload Artifacts"
uses: actions/upload-artifact@main
with:
name: ci-build
path: |
./install
./cmake-build