fix(ios): resolve animation thread race & add protection for running script #2859
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] build tests' | |
on: | |
pull_request: | |
branches: | |
- master | |
- main | |
paths: | |
- 'ios/**' | |
- 'core/**' | |
- 'hippy.podspec' | |
- 'examples/ios-demo/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
ios_build_tests: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
type: [debug, release] | |
include: | |
- type: debug | |
configuration: Debug | |
- type: release | |
configuration: Release | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Build | |
run: | | |
pushd examples/ios-demo | |
pod install | |
xcodebuild -workspace 'HippyDemo.xcworkspace' -list | \ | |
sed -n '/Schemes/,/^$/p' | \ | |
grep -v "Schemes:" | \ | |
grep -v '^\s*$' | \ | |
while read scheme; do | |
echo "Building ${scheme}…" | |
xcodebuild build \ | |
-destination "generic/platform=iOS" \ | |
-workspace "HippyDemo.xcworkspace" \ | |
-scheme "${scheme}" \ | |
-configuration "${{ matrix.configuration }}" \ | |
CODE_SIGN_IDENTITY="" \ | |
CODE_SIGNING_REQUIRED=NO \ | |
CODE_SIGNING_ALLOWED=NO | |
done | |
popd |