Skip to content

Commit

Permalink
Bump CI
Browse files Browse the repository at this point in the history
  • Loading branch information
twistedfall committed Jul 22, 2024
1 parent f69b061 commit 58e0376
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/opencv-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,21 @@ jobs:
matrix:
os-image:
- ubuntu-22.04
- macos-13
- macos-14
opencv-version:
- 3.4.20
- 4.10.0
linkage:
- dynamic
include:
- os-image: ubuntu-22.04
opencv-version: 4.10.0
linkage: static
- os-image: ubuntu-22.04
opencv-version: 3.4.20
linkage: dynamic
- os-image: macos-13
opencv-version: 3.4.20
linkage: dynamic
runs-on: ${{ matrix.os-image }}
env:
Atlas_ROOT_DIR: /usr/include/ # for cmake to find lapacke.h
Expand Down
8 changes: 8 additions & 0 deletions ci/install-macos-framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -xeu

macos_version="$(sw_vers -productVersion)"

dist_dir="$HOME/dist/"
base_dir="$HOME/build/opencv/"
build_dir="$base_dir/opencv-$OPENCV_VERSION-build/"
Expand All @@ -23,7 +25,13 @@ if [ ! -d "$opencv_contrib_src" ]; then
curl -L "https://github.com/opencv/opencv_contrib/archive/$OPENCV_VERSION.tar.gz" | tar -xz -C "$dist_dir"
fi

if [[ "$OPENCV_VERSION" == "3.4.20" ]]; then # old OpenCV doesn't support choosing archs
arch_arg=
else
arch_arg="--macos_archs $(uname -m)"
fi
python "$opencv_src/platforms/osx/build_framework.py" \
--contrib "$opencv_contrib_src" \
--enable_nonfree \
$arch_arg \
"$build_dir"
4 changes: 2 additions & 2 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ elif [[ "$os_family" == "macOS" ]]; then
true
else # framework build
clang_dir="$(clang --print-search-dirs | awk -F= '/^libraries: =/ { print $2 }')"
export OPENCV_LINK_PATHS="$HOME/build/opencv/opencv-$OPENCV_VERSION-build,$clang_dir/lib/darwin"
export OPENCV_LINK_LIBS="opencv2.framework,OpenCL.framework,Cocoa.framework,Accelerate.framework,AVFoundation.framework,CoreGraphics.framework,CoreMedia.framework,CoreVideo.framework,QuartzCore.framework,clang_rt.osx"
export OPENCV_LINK_PATHS="$HOME/build/opencv/opencv-$OPENCV_VERSION-build,$clang_dir/lib/darwin,$HOME/build/opencv/opencv-$OPENCV_VERSION-build/build/build-$(uname -m)-macosx/install/lib/"
export OPENCV_LINK_LIBS="opencv2.framework,OpenCL.framework,Cocoa.framework,Accelerate.framework,AVFoundation.framework,CoreGraphics.framework,CoreMedia.framework,CoreVideo.framework,QuartzCore.framework,clang_rt.osx,OrbbecSDK"
export OPENCV_INCLUDE_PATHS="$HOME/build/opencv/opencv-$OPENCV_VERSION-build"
fi
echo "=== Installed brew packages:"
Expand Down

0 comments on commit 58e0376

Please sign in to comment.