Skip to content

Commit

Permalink
Merge pull request #14 from yeatse/feature/4.9-fix
Browse files Browse the repository at this point in the history
fix build error for 4.9
  • Loading branch information
yeatse authored Dec 30, 2023
2 parents 988cafd + 919d5e7 commit 235d8d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ on:

jobs:
build:
runs-on: macOS-latest
runs-on: macos-13

steps:
- name: Prepare Xcode
run: |
sudo xcode-select -s /Applications/Xcode_15.1.app/Contents/Developer
- name: actions-setup-cmake
uses: jwlawson/[email protected]
with:
cmake-version: 3.24
cmake-version: 3.28

- name: Checkout
uses: actions/checkout@v3
Expand All @@ -34,12 +38,14 @@ jobs:
- name: Build xcframework
working-directory: opencv
env:
IPHONEOS_DEPLOYMENT_TARGET: 11.0
IPHONEOS_DEPLOYMENT_TARGET: 12.0
MACOSX_DEPLOYMENT_TARGET: 10.13
run: |
git apply $GITHUB_WORKSPACE/opencv-spm/opencv.patch
pip3 install pathlib
python3 platforms/apple/build_xcframework.py --iphoneos_archs=arm64 --disable-bitcode -o build
python3 platforms/apple/build_xcframework.py \
--iphoneos_archs=arm64 \
--disable-bitcode -o build
- name: Zip artifact
working-directory: opencv
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let checksum = "ce65a8379a4d7428e2c09a8658110015d8f5ded79c15e3aa3b512f14bc85b7dd
let package = Package(
name: "OpenCV",
platforms: [
.macOS(.v10_13), .iOS(.v11), .macCatalyst(.v13)
.macOS(.v10_13), .iOS(.v12), .macCatalyst(.v13)
],
products: [
.library(
Expand Down

0 comments on commit 235d8d1

Please sign in to comment.