Skip to content

Commit 8680a51

Browse files
committed
Bump CI
1 parent e444638 commit 8680a51

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

.github/workflows/opencv-rust.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,21 @@ jobs:
1313
matrix:
1414
os-image:
1515
- ubuntu-22.04
16-
- macos-13
16+
- macos-14
1717
opencv-version:
18-
- 3.4.20
1918
- 4.10.0
2019
linkage:
2120
- dynamic
2221
include:
2322
- os-image: ubuntu-22.04
2423
opencv-version: 4.10.0
2524
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
2631
runs-on: ${{ matrix.os-image }}
2732
env:
2833
Atlas_ROOT_DIR: /usr/include/ # for cmake to find lapacke.h

ci/install-macos-framework.sh

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -xeu
44

5+
macos_version="$(sw_vers -productVersion)"
6+
57
dist_dir="$HOME/dist/"
68
base_dir="$HOME/build/opencv/"
79
build_dir="$base_dir/opencv-$OPENCV_VERSION-build/"
@@ -23,7 +25,15 @@ if [ ! -d "$opencv_contrib_src" ]; then
2325
curl -L "https://github.com/opencv/opencv_contrib/archive/$OPENCV_VERSION.tar.gz" | tar -xz -C "$dist_dir"
2426
fi
2527

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

0 commit comments

Comments
 (0)