-
Notifications
You must be signed in to change notification settings - Fork 56
44 lines (39 loc) · 1.07 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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: build
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'README_CN.md'
- 'docs/**'
pull_request:
paths-ignore:
- 'README.md'
- 'README_CN.md'
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-18.04
defaults:
run:
shell: bash -l {0}
container:
image: openxrlab/xrslam_ci:ubuntu1804_x64_cpu_gcc9
steps:
- uses: actions/checkout@v2
- name: Build and install
run: |
mv /xrprimer ../
cmake -B build -D XRSLAM_TEST=ON
cmake --build build -j4
- name: Run unittests and generate coverage report
run: |
./build/bin/test_version
./build/bin/test_se3_cost_function
./build/bin/test_feature_track