-
Notifications
You must be signed in to change notification settings - Fork 956
61 lines (55 loc) · 1.82 KB
/
iOS-Sample.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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