Merge pull request #1358 from fspindle/fix_ubuntu-12.04-ci #1342
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' | |
# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build-ios: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-11] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- 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 | |
python ../platforms/ios/build_framework.py ios |