File tree Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,21 @@ jobs:
13
13
matrix :
14
14
os-image :
15
15
- ubuntu-22.04
16
- - macos-13
16
+ - macos-14
17
17
opencv-version :
18
- - 3.4.20
19
18
- 4.10.0
20
19
linkage :
21
20
- dynamic
22
21
include :
23
22
- os-image : ubuntu-22.04
24
23
opencv-version : 4.10.0
25
24
linkage : static
25
+ - os-image : ubuntu-22.04
26
+ opencv-version : 3.4.20
27
+ linkage : dynamic
28
+ - os-image : macos-13
29
+ opencv-version : 3.4.20
30
+ linkage : dynamic
26
31
runs-on : ${{ matrix.os-image }}
27
32
env :
28
33
Atlas_ROOT_DIR : /usr/include/ # for cmake to find lapacke.h
Original file line number Diff line number Diff line change 2
2
3
3
set -xeu
4
4
5
+ macos_version=" $( sw_vers -productVersion) "
6
+
5
7
dist_dir=" $HOME /dist/"
6
8
base_dir=" $HOME /build/opencv/"
7
9
build_dir=" $base_dir /opencv-$OPENCV_VERSION -build/"
@@ -23,7 +25,15 @@ if [ ! -d "$opencv_contrib_src" ]; then
23
25
curl -L " https://github.com/opencv/opencv_contrib/archive/$OPENCV_VERSION .tar.gz" | tar -xz -C " $dist_dir "
24
26
fi
25
27
26
- python " $opencv_src /platforms/osx/build_framework.py" \
27
- --contrib " $opencv_contrib_src " \
28
- --enable_nonfree \
29
- " $build_dir "
28
+ if [[ " $macos_version " == " 13." * ]]; then # old non-arm macOS
29
+ python " $opencv_src /platforms/osx/build_framework.py" \
30
+ --contrib " $opencv_contrib_src " \
31
+ --enable_nonfree \
32
+ " $build_dir "
33
+ else
34
+ python " $opencv_src /platforms/osx/build_framework.py" \
35
+ --contrib " $opencv_contrib_src " \
36
+ --enable_nonfree \
37
+ --macos_archs " $( uname -m) " \
38
+ " $build_dir "
39
+ fi
You can’t perform that action at this time.
0 commit comments