Fix warning: "The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' … #265
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
name: iOS | ||
# https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 2 * * SUN' | ||
jobs: | ||
build-ios: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest] | ||
steps: | ||
# https://github.com/marketplace/actions/cancel-workflow-action | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Print system information | ||
run: | | ||
sysctl -a | grep machdep.cpu | ||
sysctl -a | grep logical | ||
- name: Print OS information | ||
run: system_profiler SPSoftwareDataType | ||
- name: Install dependencies | ||
run: brew install python | ||
- name: Build ios framework | ||
run: | | ||
mkdir build | ||
cd build | ||
# cf: doc\tutorial\ios\tutorial-install-iOS.dox | ||
python ../platforms/ios/build_framework.py ios --iphoneos_deployment_target 12.0 --iphoneos_archs arm64 \ | ||
--build_only_specified_archs True |