-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build extra Windows configurations as jobs, but not pipelines.
- Loading branch information
1 parent
bf8df2e
commit 514cdf0
Showing
3 changed files
with
109 additions
and
154 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,9 @@ concurrency: | |
|
||
env: | ||
EXTRA_CMAKE_OPTIONS: '-DCL_Z_OPTION=/Z7 -DOPENCV_DOWNLOAD_PATH=%BINARIES_CACHE% -DBUILD_EXAMPLES=ON -DOPENCV_ENABLE_NONFREE=ON -DCMAKE_BUILD_TYPE=Release' | ||
EXTRA_CMAKE_CORSS_OPTIONS: '-DWITH_OPENCL=OFF -DHAVE_OPENCL=OFF -DOPENCL_INCLUDE_DIRS="" -DOPENCL_LIBRARIES=""' | ||
EXTRA_CMAKE_UWP_OPTIONS: '-DBUILD_opencv_gapi=OFF -DWITH_MSMF=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_opencv_apps=OFF' | ||
|
||
OPENCV_TEST_DATA_PATH: ${{ github.workspace }}\opencv_extra\testdata | ||
OPENCV_TEST_REQUIRE_DATA: 1 | ||
OPENCV_TEST_CHECK_OPTIONAL_DATA: 1 | ||
|
@@ -247,6 +250,7 @@ jobs: | |
name: junit-html-windows10 | ||
path: ${{ github.workspace }}\build\java_test\testResults\junit-noframes.html | ||
|
||
|
||
BuildContrib: | ||
runs-on: opencv-cn-win | ||
defaults: | ||
|
@@ -311,3 +315,108 @@ jobs: | |
- name: Warnings check | ||
timeout-minutes: 60 | ||
run: cd ${{ github.workspace }}\build && python %CI_SCRIPTS%\warnings-handling.py | ||
|
||
|
||
CrossBuildArm64: | ||
runs-on: opencv-cn-win | ||
defaults: | ||
run: | ||
shell: cmd | ||
steps: | ||
- name: Brief system information | ||
timeout-minutes: 60 | ||
run: bash %GIT_CACHE%\print_system_information.sh | ||
- name: Setup infra environment | ||
timeout-minutes: 60 | ||
if: ${{ github.event.repository.name == 'ci-gha-workflow' }} | ||
shell: bash | ||
run: echo "TARGET_BRANCH_NAME=4.x" >> $GITHUB_ENV | ||
- name: PR info | ||
timeout-minutes: 60 | ||
run: | | ||
echo "PR Author: ${{ env.PR_AUTHOR }}" | ||
echo "PR Author fork: ${{ env.PR_AUTHOR_FORK }}" | ||
echo "Source branch name: ${{ env.SOURCE_BRANCH_NAME }}" | ||
echo "Target branch name: ${{ env.TARGET_BRANCH_NAME }}" | ||
- name: Clean | ||
timeout-minutes: 60 | ||
run: cd ${{ github.workspace }} && rm -rf * | ||
- name: Fetch opencv | ||
timeout-minutes: 60 | ||
run: cd ${{ github.workspace }} && git clone --branch ${{ env.TARGET_BRANCH_NAME }} --reference %GIT_CACHE%\opencv.git [email protected]:opencv/opencv.git | ||
- name: Merge opencv with ${{ env.SOURCE_BRANCH_NAME }} branch | ||
timeout-minutes: 60 | ||
if: ${{ github.event.repository.name != 'ci-gha-workflow' }} | ||
run: | | ||
cd ${{ github.workspace }}\opencv | ||
git pull -v "[email protected]:${{ env.PR_AUTHOR_FORK }}" "${{ env.SOURCE_BRANCH_NAME }}" | ||
- name: Fetch opencv_extra | ||
timeout-minutes: 60 | ||
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 | ||
- name: Configure OpenCV | ||
timeout-minutes: 60 | ||
run: | | ||
mkdir ${{ github.workspace }}\build && cd ${{ github.workspace }}\build | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_arm64.bat" | ||
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 | ||
- name: Build OpenCV | ||
timeout-minutes: 60 | ||
id: build-opencv | ||
run: | | ||
cd ${{ github.workspace }}\build | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_arm64.bat" | ||
msbuild.exe OpenCV.sln | tee ${{ github.workspace }}\build\build-log.txt | ||
- name: Warnings check | ||
timeout-minutes: 60 | ||
run: cd ${{ github.workspace }}\build && python %CI_SCRIPTS%\warnings-handling.py | ||
|
||
|
||
BuildUWP: | ||
runs-on: opencv-cn-win | ||
defaults: | ||
run: | ||
shell: cmd | ||
steps: | ||
- name: Brief system information | ||
timeout-minutes: 60 | ||
run: bash %GIT_CACHE%\print_system_information.sh | ||
- name: Setup infra environment | ||
timeout-minutes: 60 | ||
if: ${{ github.event.repository.name == 'ci-gha-workflow' }} | ||
shell: bash | ||
run: echo "TARGET_BRANCH_NAME=4.x" >> $GITHUB_ENV | ||
- name: PR info | ||
timeout-minutes: 60 | ||
run: | | ||
echo "PR Author: ${{ env.PR_AUTHOR }}" | ||
echo "PR Author fork: ${{ env.PR_AUTHOR_FORK }}" | ||
echo "Source branch name: ${{ env.SOURCE_BRANCH_NAME }}" | ||
echo "Target branch name: ${{ env.TARGET_BRANCH_NAME }}" | ||
- name: Clean | ||
timeout-minutes: 60 | ||
run: cd ${{ github.workspace }} && rm -rf * | ||
- name: Fetch opencv | ||
timeout-minutes: 60 | ||
run: cd ${{ github.workspace }} && git clone --branch ${{ env.TARGET_BRANCH_NAME }} --reference %GIT_CACHE%\opencv.git [email protected]:opencv/opencv.git | ||
- name: Merge opencv with ${{ env.SOURCE_BRANCH_NAME }} branch | ||
timeout-minutes: 60 | ||
if: ${{ github.event.repository.name != 'ci-gha-workflow' }} | ||
run: | | ||
cd ${{ github.workspace }}\opencv | ||
git pull -v "[email protected]:${{ env.PR_AUTHOR_FORK }}" "${{ env.SOURCE_BRANCH_NAME }}" | ||
- name: Configure OpenCV | ||
timeout-minutes: 60 | ||
run: | | ||
mkdir ${{ github.workspace }}\build && cd ${{ github.workspace }}\build | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
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 | ||
- name: Build OpenCV | ||
timeout-minutes: 60 | ||
id: build-opencv | ||
run: | | ||
cd ${{ github.workspace }}\build | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
cmake --build . | tee ${{ github.workspace }}\build\build-log.txt | ||
- name: Warnings check | ||
timeout-minutes: 60 | ||
run: cd ${{ github.workspace }}\build && python %CI_SCRIPTS%\warnings-handling.py |