Merge c93191a7fe3c98231313c43ee498756b7989e5d1 into sapling-pr-archiv… #4921
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: Build iOS apps | |
# This action runs on 'git push' and PRs to below specified paths | |
on: | |
push: | |
paths: | |
- "iOS/**" | |
- "xplat/**" | |
- "Flipper.podspec" | |
- "FlipperKit.podspec" | |
pull_request: | |
paths: | |
- "iOS/**" | |
- "xplat/**" | |
- "Flipper.podspec" | |
- "FlipperKit.podspec" | |
jobs: | |
build-sample-objc: | |
runs-on: macos-latest | |
defaults: | |
run: | |
working-directory: iOS/Sample | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- name: Install dependencies | |
run: pod install --repo-update | |
- name: Build Sample app | |
run: | | |
IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$") && echo $IPHONESIMULATOR | |
xcodebuild build -workspace Sample.xcworkspace -scheme Sample -sdk $IPHONESIMULATOR EXCLUDED_ARCHS="arm64" | |
build-sample-swift: | |
runs-on: macos-latest | |
defaults: | |
run: | |
working-directory: iOS/SampleSwift | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- name: Install dependencies | |
run: pod install --repo-update | |
- name: Build SampleSwift app | |
run: | | |
IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$") && echo $IPHONESIMULATOR | |
xcodebuild build -workspace SampleSwift.xcworkspace -scheme SampleSwift -sdk $IPHONESIMULATOR | |
build-tutorial: | |
runs-on: macos-latest | |
defaults: | |
run: | |
working-directory: iOS/Tutorial | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- name: Install dependencies | |
run: pod install --repo-update | |
- name: Build Tutorial app | |
run: | | |
IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$") && echo $IPHONESIMULATOR | |
xcodebuild build -workspace Tutorial.xcworkspace -scheme Tutorial -sdk $IPHONESIMULATOR |