-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 927 Bytes
/
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
name: CI
on:
push:
branches:
- main
- test-ci
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Build project
uses: nicledomaS/[email protected]
with:
submodule_update: ON
run_tests: ON
unit_test_build: -Dtest=ON
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libomp-dev
sudo apt-get install -y libopencv-dev
- name: Configure CMake
run: cmake -S . -B build
- name: Build
run: cmake --build build
- name: Run example tests
if: env.BUILD_EXAMPLE == 'ON'
run: build/example
- name: Run benchmark tests
if: env.BUILD_BENCHMARK == 'ON'
run: build/benchmark
- name: Run example-opencv tests
if: env.BUILD_EXAMPLE_OPENCV == 'ON'
run: build/example-opencv