-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (57 loc) · 1.85 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: CI
on:
push:
branches:
- main
- test-ci
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[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 cmake
sudo apt-get install -y libomp-dev
sudo apt-get install -y libopencv-dev
- name: CMake Configure & Generate
run: cmake -S . -B build -DBUILD_EXAMPLE:BOOL="1" -DBUILD_EXAMPLE_OPENCV:BOOL="1" -DBUILD_BENCHMARK:BOOL="1" -DUSE_OPENMP:BOOL="1"
- name: Build
run: cmake --build build --config Release
- name: Run example tests
run: build/example
- name: Run benchmark tests
run: build/benchmark
- name: Run example-opencv tests
run: build/example-opencv
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup MSVC Developer Command Prompt
uses: TheMrMilchmann/[email protected]
with:
arch: x64
- name: Install dependencies
run: |
choco install cmake --version=3.31.3
choco install opencv --version=4.10.0
- name: CMake Configure & Generate
run: cmake -S . -B build -DBUILD_EXAMPLE:BOOL="1" -DBUILD_EXAMPLE_OPENCV:BOOL="1" -DBUILD_BENCHMARK:BOOL="1" -DUSE_OPENMP:BOOL="1" -DOpenCV_DIR:PATH="C:\tools\opencv\build"
- name: Build
run: cmake --build build --config Release
- name: Run example tests
run: build\Release\example.exe
- name: Run benchmark tests
run: build\Release\benchmark.exe
- name: Run example-opencv tests
run: |
copy C:\tools\opencv\build\x64\vc16\bin\opencv_world4100.dll build\Release\
build\Release\example-opencv.exe