File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Continous Builds
2+
3+ on :
4+ push :
5+ branches : [master]
6+
7+ env :
8+ VERSION : 4.5.5
9+
10+ jobs :
11+ job_1 :
12+ runs-on : windows-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+ - uses : actions/setup-python@v2
16+ with :
17+ python-version : ' 3.8'
18+ - name : install mingw
19+ run : |
20+ pip install aqtinstall
21+ python3 -m aqt install-tool -O ${{ github.workspace }}/Qt/ windows desktop tools_mingw90
22+ echo "${{ github.workspace }}/Qt/Tools/mingw900_64/bin/" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
23+ - name : compile opencv
24+ shell : cmd
25+ run : |
26+ choco install git cmake
27+ git clone https://github.com/opencv/opencv.git
28+ cd opencv
29+ git checkout ${{ env.VERSION }}
30+ mkdir build
31+ cd build
32+ 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=ON -DBUILD_PROTOBUF=OFF -DPROTOBUF_UPDATE_FILES=ON -DINSTALL_C_EXAMPLES=ON -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" -DCMAKE_CXX_COMPILER=g++ ..\
33+ cmake --build . --config Release
34+ cmake --install .
35+ - name : Windows artefact
36+ uses : actions/upload-artifact@v2
37+ with :
38+ name : OpenCV_${{ env.VERSION }}
39+ path : ./opencv/build/install/
40+
You can’t perform that action at this time.
0 commit comments