-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (38 loc) · 1.33 KB
/
main.yml
File metadata and controls
46 lines (38 loc) · 1.33 KB
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
name: Build
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install OpenCV
if: startsWith(matrix.os, 'windows')
run: |
choco install --verbose opencv
- name: Build
if: startsWith(matrix.os, 'windows')
run: |
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cd include/eigen
mkdir build
cd build
cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX=C:/tools/eigen3 ..
cmake --build . --config Release
cmake --build . --config Release --target install
cd ../../..
mkdir build
cd build
cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -Deigen3_DIR=C:\tools\eigen3\share\eigen3\cmake\ -DOpenCV_DIR=C:\tools\opencv\build\ ..
cmake --build . --config Release
for /R C:\tools\opencv\build %%f in (*.dll) do copy %%f "%CD%\src\Release"
shell: cmd
- name: Archive build results
uses: actions/upload-artifact@v2
with:
name: librectify
path: ./build/src/Release/*