File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -72,28 +72,20 @@ jobs:
7272 path : opencv_contrib
7373 fetch-depth : 1
7474
75- - name : MSVC Environment(Windows Only)
76- if : startsWith(matrix.os, 'win')
77- uses : ilammy/msvc-dev-cmd@v1
78- with :
79- arch : ${{ matrix.arch }}
80-
8175 - name : Configure OpenCV
8276 run : |
8377 cd opencv && mkdir build && cd build
84-
8578 EXTRA_FLAGS=""
86- if [[ "${{ matrix.os }}" =~ ^ win ]]; then
87- EXTRA_FLAGS="-GNinja "
79+ if [[ "${{ matrix.os }}" == " win" && "${{ matrix.arch }}" == "arm64" ]]; then
80+ EXTRA_FLAGS+=" -A ARM64 "
8881 fi
89-
9082 cmake ${{ env.OPENCV_CMAKE_ARGS }} $EXTRA_FLAGS ..
9183
9284 - name : Build OpenCV
9385 run : |
9486 cd opencv/build
9587 if [[ "${{ matrix.os }}" =~ ^win ]]; then
96- cmake --build . --parallel
88+ cmake --build . --config Release
9789 else
9890 make -j$(nproc)
9991 fi
10294 run : |
10395 cd opencv/build
10496 if [[ "${{ matrix.os }}" =~ ^win ]]; then
105- cmake --install .
97+ cmake --install . --config Release
10698 else
10799 make install
108100 fi
You can’t perform that action at this time.
0 commit comments