Skip to content

Commit e8039e8

Browse files
committed
Bump CI
1 parent a2ab8f9 commit e8039e8

File tree

3 files changed

+29
-12
lines changed

3 files changed

+29
-12
lines changed

.github/workflows/opencv-rust.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
os-image:
1717
- ubuntu-24.04
18-
- macos-14
18+
- macos-15
1919
opencv-version:
2020
- 4.11.0
2121
linkage:
@@ -30,7 +30,7 @@ jobs:
3030
- os-image: ubuntu-22.04
3131
opencv-version: 3.4.20
3232
linkage: dynamic
33-
- os-image: macos-13
33+
- os-image: macos-14
3434
opencv-version: 3.4.20
3535
linkage: dynamic
3636
runs-on: ${{ matrix.os-image }}
@@ -64,20 +64,20 @@ jobs:
6464
matrix:
6565
os-image:
6666
- ubuntu-24.04
67-
- windows-2022
67+
- windows-2025
6868
vcpkg-version:
69-
- 2025.08.27 # https://github.com/microsoft/vcpkg/releases
69+
- 2025.09.17 # https://github.com/microsoft/vcpkg/releases
7070
vcpkg-features-cache-key:
7171
- full
7272
vcpkg-features:
7373
- contrib,nonfree,ade,opencl
7474
include:
75-
- os-image: windows-2022
76-
vcpkg-version: 2025.08.27
75+
- os-image: windows-2025
76+
vcpkg-version: 2025.09.17
7777
vcpkg-features-cache-key: min
7878
vcpkg-features: contrib
79-
- os-image: macos-14
80-
vcpkg-version: 2025.08.27
79+
- os-image: macos-15
80+
vcpkg-version: 2025.09.17
8181
vcpkg-features-cache-key: full-no-opencl
8282
vcpkg-features: contrib,nonfree,ade
8383
runs-on: ${{ matrix.os-image }}
@@ -108,7 +108,7 @@ jobs:
108108
fail-fast: false
109109
matrix:
110110
os-image:
111-
- windows-2022
111+
- windows-2025
112112
version:
113113
- opencv: 3.4.16
114114
- opencv: 4.11.0 # https://community.chocolatey.org/packages/OpenCV#versionhistory
@@ -119,7 +119,7 @@ jobs:
119119
- os-image: ubuntu-22.04
120120
version:
121121
opencv: 4.5.4
122-
- os-image: macos-14
122+
- os-image: macos-15
123123
version:
124124
brew: "@4"
125125
runs-on: ${{ matrix.os-image }}

ci/install-macos-framework.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,15 @@ if [ ! -d "$opencv_contrib_src" ]; then
2323
curl -L "https://github.com/opencv/opencv_contrib/archive/$OPENCV_VERSION.tar.gz" | tar -xz -C "$dist_dir"
2424
fi
2525

26-
if [[ "$OPENCV_VERSION" == "3.4.20" ]]; then # old OpenCV doesn't support choosing archs
27-
export CMAKE_POLICY_VERSION_MINIMUM=3.5
26+
if [[ "$OPENCV_VERSION" == "3.4.20" ]]; then
27+
# old OpenCV doesn't support choosing archs, patch hardcoded value to be arm64
2828
arch_arg=
29+
script_dir="$(dirname "$(readlink -f "$0")")"
30+
patch -p1 -d"$opencv_src" < "$script_dir/opencv-3.4-macos-arm64-build.patch"
31+
# old OpenCV CMake min version requirement is too old for the newer CMake
32+
export CMAKE_POLICY_VERSION_MINIMUM=3.5
33+
# old OpenCV requires too old SDK for macOS 10.14
34+
export MACOSX_DEPLOYMENT_TARGET=10.13
2935
else
3036
arch_arg="--macos_archs $(uname -m)"
3137
fi
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
diff '--color=auto' -ur opencv-3.4.20.orig/platforms/osx/build_framework.py opencv-3.4.20/platforms/osx/build_framework.py
2+
--- opencv-3.4.20.orig/platforms/osx/build_framework.py 2023-06-27 13:29:13.000000000 +0200
3+
+++ opencv-3.4.20/platforms/osx/build_framework.py 2025-10-03 11:25:30.786775436 +0200
4+
@@ -53,6 +53,6 @@
5+
6+
b = OSXBuilder(args.opencv, args.contrib, False, False, args.without, args.disable, args.enablenonfree,
7+
[
8+
- (["x86_64"], "MacOSX")
9+
+ (["arm64"], "MacOSX")
10+
], args.debug, args.debug_info)
11+
b.build(args.out)

0 commit comments

Comments
 (0)