Files
flipper/.github/workflows/iOS-Sample.yml
Pritesh Nandgaonkar d22e893169 Update the run logic of iOS jobs (#2118)
Summary:
This PR updates the logic when these iOS jobs should be run. This change just makes it run for pushes to iOS folders and xplat c++ folders.

## Changelog

- Update the GH action.

Pull Request resolved: https://github.com/facebook/flipper/pull/2118

Test Plan: Note that no iOS job is run.

Reviewed By: mweststrate

Differential Revision: D27395681

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 37a7c2fb9b3fdfa22307ac5e7403364bfeb0a384
2021-03-29 06:57:10 -07:00

57 lines
1.6 KiB
YAML

name: Build iOS apps
on:
push:
paths:
- "iOS/**"
- "xplat/**"
pull_request:
paths:
- "iOS/**"
- "xplat/**"
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 EXCLUDED_ARCHS=arm64
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
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