Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/1673 XCode 12 starts building for apple hardware, but that fails on x86, so only build x86_64. Reviewed By: nikoant Differential Revision: D24857260 fbshipit-source-id: 30c0e021d4f809fd3a8ad72537a2627a43e589eb
49 lines
1.6 KiB
YAML
49 lines
1.6 KiB
YAML
name: Build iOS apps
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build-sample-objc:
|
|
runs-on: macos-latest
|
|
defaults:
|
|
run:
|
|
working-directory: iOS/Sample
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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 -arch x86_64
|
|
|
|
build-sample-swift:
|
|
runs-on: macos-latest
|
|
defaults:
|
|
run:
|
|
working-directory: iOS/SampleSwift
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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 -arch x86_64
|
|
|
|
build-tutorial:
|
|
runs-on: macos-latest
|
|
defaults:
|
|
run:
|
|
working-directory: iOS/Tutorial
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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 -arch x86_64
|
|
|