Skip to content

[quick ci] Test using a specific tag to filter GitHub ci jobs. #281

[quick ci] Test using a specific tag to filter GitHub ci jobs.

[quick ci] Test using a specific tag to filter GitHub ci jobs. #281

Workflow file for this run

name: iOS
# https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events
on:
pull_request:
types: [opened, reopened, synchronize]
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:
# https://michaelcurrin.github.io/dev-cheatsheets/cheatsheets/ci-cd/github-actions/skip.html
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/using-conditions-to-control-job-execution
if: ${{ ! contains(github.event.commits[0].message, '[quick ci]') }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
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

Check failure on line 41 in .github/workflows/ios.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ios.yml

Invalid workflow file

You have an error in your yaml syntax on line 41
- 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