@@ -14,6 +14,9 @@ concurrency:
14
14
15
15
env :
16
16
EXTRA_CMAKE_OPTIONS : ' -DCL_Z_OPTION=/Z7 -DOPENCV_DOWNLOAD_PATH=%BINARIES_CACHE% -DBUILD_EXAMPLES=ON -DOPENCV_ENABLE_NONFREE=ON -DCMAKE_BUILD_TYPE=Release'
17
+ EXTRA_CMAKE_CORSS_OPTIONS : ' -DWITH_OPENCL=OFF -DHAVE_OPENCL=OFF -DOPENCL_INCLUDE_DIRS="" -DOPENCL_LIBRARIES=""'
18
+ EXTRA_CMAKE_UWP_OPTIONS : ' -DBUILD_opencv_gapi=OFF -DWITH_MSMF=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_opencv_apps=OFF'
19
+
17
20
OPENCV_TEST_DATA_PATH : ${{ github.workspace }}\opencv_extra\testdata
18
21
OPENCV_TEST_REQUIRE_DATA : 1
19
22
OPENCV_TEST_CHECK_OPTIONAL_DATA : 1
@@ -247,6 +250,7 @@ jobs:
247
250
name : junit-html-windows10
248
251
path : ${{ github.workspace }}\build\java_test\testResults\junit-noframes.html
249
252
253
+
250
254
BuildContrib :
251
255
runs-on : opencv-cn-win
252
256
defaults :
@@ -311,3 +315,108 @@ jobs:
311
315
- name : Warnings check
312
316
timeout-minutes : 60
313
317
run : cd ${{ github.workspace }}\build && python %CI_SCRIPTS%\warnings-handling.py
318
+
319
+
320
+ CrossBuildArm64 :
321
+ runs-on : opencv-cn-win
322
+ defaults :
323
+ run :
324
+ shell : cmd
325
+ steps :
326
+ - name : Brief system information
327
+ timeout-minutes : 60
328
+ run : bash %GIT_CACHE%\print_system_information.sh
329
+ - name : Setup infra environment
330
+ timeout-minutes : 60
331
+ if : ${{ github.event.repository.name == 'ci-gha-workflow' }}
332
+ shell : bash
333
+ run : echo "TARGET_BRANCH_NAME=4.x" >> $GITHUB_ENV
334
+ - name : PR info
335
+ timeout-minutes : 60
336
+ run : |
337
+ echo "PR Author: ${{ env.PR_AUTHOR }}"
338
+ echo "PR Author fork: ${{ env.PR_AUTHOR_FORK }}"
339
+ echo "Source branch name: ${{ env.SOURCE_BRANCH_NAME }}"
340
+ echo "Target branch name: ${{ env.TARGET_BRANCH_NAME }}"
341
+ - name : Clean
342
+ timeout-minutes : 60
343
+ run : cd ${{ github.workspace }} && rm -rf *
344
+ - name : Fetch opencv
345
+ timeout-minutes : 60
346
+ run :
cd ${{ github.workspace }} && git clone --branch ${{ env.TARGET_BRANCH_NAME }} --reference %GIT_CACHE%\opencv.git [email protected] :opencv/opencv.git
347
+ - name : Merge opencv with ${{ env.SOURCE_BRANCH_NAME }} branch
348
+ timeout-minutes : 60
349
+ if : ${{ github.event.repository.name != 'ci-gha-workflow' }}
350
+ run : |
351
+ cd ${{ github.workspace }}\opencv
352
+ git pull -v "[email protected] :${{ env.PR_AUTHOR_FORK }}" "${{ env.SOURCE_BRANCH_NAME }}"
353
+ - name : Fetch opencv_extra
354
+ timeout-minutes : 60
355
+ run :
cd ${{ github.workspace }} && git clone --single-branch --branch ${{ env.TARGET_BRANCH_NAME }} --reference %GIT_CACHE%\opencv_extra.git [email protected] :opencv/opencv_extra.git
356
+ - name : Configure OpenCV
357
+ timeout-minutes : 60
358
+ run : |
359
+ mkdir ${{ github.workspace }}\build && cd ${{ github.workspace }}\build
360
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_arm64.bat"
361
+ cmake -G"Visual Studio 16 2019" -A ARM64 -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_PROCESSOR=ARM64 ${{ env.EXTRA_CMAKE_OPTIONS }} ${{ env.EXTRA_CMAKE_CORSS_OPTIONS }} ${{ github.workspace }}\opencv
362
+ - name : Build OpenCV
363
+ timeout-minutes : 60
364
+ id : build-opencv
365
+ run : |
366
+ cd ${{ github.workspace }}\build
367
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_arm64.bat"
368
+ msbuild.exe OpenCV.sln | tee ${{ github.workspace }}\build\build-log.txt
369
+ - name : Warnings check
370
+ timeout-minutes : 60
371
+ run : cd ${{ github.workspace }}\build && python %CI_SCRIPTS%\warnings-handling.py
372
+
373
+
374
+ BuildUWP :
375
+ runs-on : opencv-cn-win
376
+ defaults :
377
+ run :
378
+ shell : cmd
379
+ steps :
380
+ - name : Brief system information
381
+ timeout-minutes : 60
382
+ run : bash %GIT_CACHE%\print_system_information.sh
383
+ - name : Setup infra environment
384
+ timeout-minutes : 60
385
+ if : ${{ github.event.repository.name == 'ci-gha-workflow' }}
386
+ shell : bash
387
+ run : echo "TARGET_BRANCH_NAME=4.x" >> $GITHUB_ENV
388
+ - name : PR info
389
+ timeout-minutes : 60
390
+ run : |
391
+ echo "PR Author: ${{ env.PR_AUTHOR }}"
392
+ echo "PR Author fork: ${{ env.PR_AUTHOR_FORK }}"
393
+ echo "Source branch name: ${{ env.SOURCE_BRANCH_NAME }}"
394
+ echo "Target branch name: ${{ env.TARGET_BRANCH_NAME }}"
395
+ - name : Clean
396
+ timeout-minutes : 60
397
+ run : cd ${{ github.workspace }} && rm -rf *
398
+ - name : Fetch opencv
399
+ timeout-minutes : 60
400
+ run :
cd ${{ github.workspace }} && git clone --branch ${{ env.TARGET_BRANCH_NAME }} --reference %GIT_CACHE%\opencv.git [email protected] :opencv/opencv.git
401
+ - name : Merge opencv with ${{ env.SOURCE_BRANCH_NAME }} branch
402
+ timeout-minutes : 60
403
+ if : ${{ github.event.repository.name != 'ci-gha-workflow' }}
404
+ run : |
405
+ cd ${{ github.workspace }}\opencv
406
+ git pull -v "[email protected] :${{ env.PR_AUTHOR_FORK }}" "${{ env.SOURCE_BRANCH_NAME }}"
407
+ - name : Configure OpenCV
408
+ timeout-minutes : 60
409
+ run : |
410
+ mkdir ${{ github.workspace }}\build && cd ${{ github.workspace }}\build
411
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
412
+ cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 ${{ env.EXTRA_CMAKE_OPTIONS }} ${{ env.EXTRA_CMAKE_UWP_OPTIONS }} ${{ github.workspace }}\opencv
413
+ - name : Build OpenCV
414
+ timeout-minutes : 60
415
+ id : build-opencv
416
+ run : |
417
+ cd ${{ github.workspace }}\build
418
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
419
+ cmake --build . | tee ${{ github.workspace }}\build\build-log.txt
420
+ - name : Warnings check
421
+ timeout-minutes : 60
422
+ run : cd ${{ github.workspace }}\build && python %CI_SCRIPTS%\warnings-handling.py
0 commit comments