-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from yeatse/feature/4.9-fix
fix build error for 4.9
- Loading branch information
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters