Skip to content

Commit 514cdf0

Browse files
committed
Build extra Windows configurations as jobs, but not pipelines.
1 parent bf8df2e commit 514cdf0

File tree

3 files changed

+109
-154
lines changed

3 files changed

+109
-154
lines changed

.github/workflows/OCV-PR-4.x-W10-ARM64.yaml

-74
This file was deleted.

.github/workflows/OCV-PR-4.x-W10-UWP.yaml

-80
This file was deleted.

.github/workflows/OCV-PR-4.x-W10.yaml

+109
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ concurrency:
1414

1515
env:
1616
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+
1720
OPENCV_TEST_DATA_PATH: ${{ github.workspace }}\opencv_extra\testdata
1821
OPENCV_TEST_REQUIRE_DATA: 1
1922
OPENCV_TEST_CHECK_OPTIONAL_DATA: 1
@@ -247,6 +250,7 @@ jobs:
247250
name: junit-html-windows10
248251
path: ${{ github.workspace }}\build\java_test\testResults\junit-noframes.html
249252

253+
250254
BuildContrib:
251255
runs-on: opencv-cn-win
252256
defaults:
@@ -311,3 +315,108 @@ jobs:
311315
- name: Warnings check
312316
timeout-minutes: 60
313317
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

Comments
 (0)