forked from FastTrackOrg/Windows_MinGW_64_OpenCV
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.91 KB
/
continuous_autoTask.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
name: Continous Builds
on:
push:
branches: [master]
env:
VERSION: 4.10.0
jobs:
job_1:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: install mingw
run: |
pip install aqtinstall
python3 -m aqt install-tool -O ${{ github.workspace }}/Qt/ windows desktop tools_mingw1310
echo "${{ github.workspace }}/Qt/Tools/mingw1310_64/bin/" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: download-compile-install-opencv
shell: cmd
run: |
choco install git cmake tbb
git clone -b ${{ env.VERSION }} --depth=1 https://github.com/opencv/opencv_contrib.git
git clone https://github.com/opencv/opencv.git
cd opencv
git checkout ${{ env.VERSION }}
mkdir build
mkdir install
cd build
cmake -DWITH_OPENMP=ON -DWITH_OPENCL=ON -DWITH_OPENGL=ON -DWITH_TBB=ON -DWITH_VULKAN=ON -DWITH_QT=OFF -DBUILD_WITH_DEBUG_INFO=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_PROTOBUF=OFF -DPROTOBUF_UPDATE_FILES=ON -DINSTALL_C_EXAMPLES=OFF -DINSTALL_PYTHON_EXAMPLES=ON -DCPU_BASELINE_DISABLE=SSE3 -DCPU_BASELINE_REQUIRE=SSE2 -DOPENCV_SKIP_PYTHON_LOADER=ON -DOPENCV_ENABLE_NONFREE=ON -DBUILD_opencv_world=ON -G "MinGW Makefiles" -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -DCMAKE_CXX_COMPILER=g++ ..\
cmake --build . --config Release
cmake --install .
- name: Windows-upload opencv artefact1
uses: actions/upload-artifact@v4
with:
name: OpenCV_${{ env.VERSION }}_MinGW_Install
path: ./opencv/build/install/
- name: Windows-upload opencv artefact2
uses: actions/upload-artifact@v4
with:
name: OpenCV_${{ env.VERSION }}_MinGW_Full
path: ./opencv/