Skip to content

Commit a0b5271

Browse files
committed
release with non-ninja
1 parent e1fb369 commit a0b5271

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/opencv.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff 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
@@ -102,7 +94,7 @@ jobs:
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

0 commit comments

Comments
 (0)