-
Notifications
You must be signed in to change notification settings - Fork 67
103 lines (88 loc) · 2.37 KB
/
Jammy.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
name: Jammy CI
on:
push:
paths-ignore:
- 'datasets/**'
- 'docs/**'
- 'matlab/**'
- '.gitignore'
- 'LICENSE'
- 'README.md'
pull_request:
paths-ignore:
- 'datasets/**'
- 'docs/**'
- 'matlab/**'
- '.gitignore'
- 'LICENSE'
- 'README.md'
# enable manual trigger
workflow_dispatch:
# run on first day of the month
schedule:
- cron: '0 0 1 * *'
jobs:
Jammy-Build:
name: Build libRSF
runs-on: ubuntu-22.04
steps:
# checkout repo
- name: Checkout
uses: actions/checkout@v3
# install dependencies
- name: Install dependencies
run: ./InstallDependencies.bash
shell: bash
# build libRSF
- name: Create build directory
run: mkdir build
- name: Run CMake
working-directory: build
run: cmake -DLIBRSF_BUILD_TEST=on ..
- name: Build lib
working-directory: build
run: make all -j$(getconf _NPROCESSORS_ONLN)
# install & uninstall libRSF
- name: Install lib
working-directory: build
run: sudo make install
- name: Uninstall lib
working-directory: build
run: sudo make uninstall
# save build for test
- uses: actions/cache@v3
id: restore-build
with:
path: |
build
externals
key: ${{ github.workflow }}-${{ github.sha }}-${{ github.run_id }}-${{ env.cache-name }}-jammy
Jammy-Test:
name: Test libRSF
runs-on: ubuntu-22.04
needs: [Jammy-Build]
env:
CTEST_OUTPUT_ON_FAILURE: ON
steps:
# checkout repo
- name: Checkout
uses: actions/checkout@v3
# checkout ceres and eigen
- name: Checkout submodules
run: git submodule update --init --recursive
# get cached build
- uses: actions/cache@v3
id: restore-build
with:
path: |
build
externals
key: ${{ github.workflow }}-${{ github.sha }}-${{ github.run_id }}-${{ env.cache-name }}-jammy
# install dependencies
- name: Install dependencies
run: ./InstallDependencies.bash
shell: bash
# run tests
- name: Run tests
working-directory: build
run: make test