Skip to content

Commit 9b3584a

Browse files
committed
fixup! Unified windows build
1 parent 78e67e9 commit 9b3584a

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/OCV-PR-Windows.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
run:
6262
shell: bash
6363
env:
64-
OPENCV_DOWNLOAD_PATH: "$BINARIES_CACHE"
6564
CMAKE_OPT: >-
6665
-DCL_Z_OPTION=/Z7
6766
-DBUILD_EXAMPLES=ON
@@ -115,8 +114,25 @@ jobs:
115114
timeout-minutes: 60
116115
working-directory: '${{ github.workspace }}'
117116
run: |
118-
# ls -lR '${{ env.DNN_MODELS }}'
119117
python opencv_extra/testdata/dnn/download_models.py \
120118
--cleanup \
121119
--dst '${{ env.DNN_MODELS }}/dnn'
122120
echo "OPENCV_DNN_TEST_DATA_PATH=${{ env.DNN_MODELS }}" >> $GITHUB_ENV
121+
122+
123+
- if: ${{ github.event.repository.name != 'opencv_contrib' }}
124+
name: Configure and build OpenCV
125+
uses: ./configure-and-build
126+
with:
127+
workdir: '${{ github.workspace }}'
128+
builddir: 'build'
129+
generator: 'Visual Studio 16 2019'
130+
options: '-A x64 ${{ env.CMAKE_OPT }}'
131+
132+
- name: Configure and build OpenCV with contrib
133+
uses: ./configure-and-build
134+
with:
135+
workdir: '${{ github.workspace }}'
136+
builddir: 'build-contrib'
137+
generator: 'Visual Studio 16 2019'
138+
options: '-A x64 -DOPENCV_EXTRA_MODULES_PATH=opencv_contrib/modules ${{ env.CMAKE_OPT }}'

0 commit comments

Comments
 (0)