Skip to content

Commit

Permalink
Create continuous_autoTask.yml
Browse files Browse the repository at this point in the history
automatic build opencv and opencv-contrib with mingw
  • Loading branch information
crack-dawn authored Oct 25, 2024
1 parent fc7903b commit 34c2309
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/continuous_autoTask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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: compile 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
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 artefact
uses: actions/upload-artifact@v4
with:
name: OpenCV_${{ env.VERSION }}
path: ./opencv/build/install/

0 comments on commit 34c2309

Please sign in to comment.