-
Notifications
You must be signed in to change notification settings - Fork 128
68 lines (62 loc) · 2.03 KB
/
ci.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
62
63
64
65
66
67
68
name: "Telegraph CI"
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
WORKSPACE: Telegraph.xcworkspace
jobs:
iOS:
name: Build iOS
runs-on: macos-latest
env:
SCHEME: Telegraph iOS
strategy:
matrix:
destination: ["iPhone SE (3rd generation)", "iPhone 8 Plus", "iPhone 14", "iPad Air (5th generation)", "iPad Pro (12.9-inch) (6th generation)"]
steps:
- uses: actions/checkout@v2
- name: Build iOS
run: |
set -o pipefail
xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "platform=iOS Simulator,name=${{ matrix.destination }}" -configuration Release ONLY_ACTIVE_ARCH=NO | xcpretty -c;
tvOS:
name: Build tvOS
runs-on: macos-latest
env:
SCHEME: Telegraph tvOS
strategy:
matrix:
destination: ["Apple TV", "Apple TV 4K (3rd generation)"]
steps:
- uses: actions/checkout@v2
- name: Build tvOS
run: |
set -o pipefail
xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "platform=tvOS Simulator,name=${{ matrix.destination }}" -configuration Release ONLY_ACTIVE_ARCH=NO | xcpretty -c;
macOS:
name: Build macOS
runs-on: macos-latest
env:
SCHEME: Telegraph macOS
steps:
- uses: actions/checkout@v2
- name: Build macOS
run: |
set -o pipefail
xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "platform=macOS,arch=x86_64" -configuration Release ONLY_ACTIVE_ARCH=NO | xcpretty -c;
test:
name: Test
runs-on: macos-latest
env:
SCHEME: Telegraph iOS
steps:
- uses: actions/checkout@v2
- name: Test iOS
run: |
set -o pipefail
xcodebuild test -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "platform=iOS Simulator,name=iPhone 14 Pro" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES | xcpretty -c;