-
-
Notifications
You must be signed in to change notification settings - Fork 361
142 lines (139 loc) · 4.26 KB
/
ci.yml
File metadata and controls
142 lines (139 loc) · 4.26 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: "Pulse CI"
on:
push:
branches:
- main
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ios-latest:
name: Unit Tests (iOS 26.2, Xcode 26.2)
runs-on: macOS-26
timeout-minutes: 20
env:
DEVELOPER_DIR: /Applications/Xcode_26.2.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- name: Boot simulator
run: |
xcrun simctl boot "iPhone 17 Pro"
xcrun simctl bootstatus "iPhone 17 Pro" -b
- name: Run Tests
run: |
.scripts/build.sh -s "Pulse" -d "OS=26.2,name=iPhone 17 Pro"
.scripts/build.sh -s "PulseUI" -d "OS=26.2,name=iPhone 17 Pro"
macos-latest:
name: Unit Tests (macOS, Xcode 26.2)
runs-on: macOS-26
timeout-minutes: 20
env:
DEVELOPER_DIR: /Applications/Xcode_26.2.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- name: Run Tests
run: .scripts/build.sh -d "platform=macOS"
tvos-latest:
name: Unit Tests (tvOS 26.2, Xcode 26.2)
runs-on: macOS-26
timeout-minutes: 20
env:
DEVELOPER_DIR: /Applications/Xcode_26.2.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- name: Boot simulator
run: |
xcrun simctl boot "Apple TV"
xcrun simctl bootstatus "Apple TV" -b
- name: Run Tests
run: |
.scripts/build.sh -s "Pulse" -d "OS=26.2,name=Apple TV"
.scripts/build.sh -s "PulseUI" -d "OS=26.2,name=Apple TV"
# There is a problem with watchOS runners where they often fail to launch on CI
#
# watchos-latest:
# name: Run Build (watchOS 26.2, Xcode 26.2)
# runs-on: macOS-26
# timeout-minutes: 20
# env:
# DEVELOPER_DIR: /Applications/Xcode_26.2.app/Contents/Developer
# steps:
# - uses: actions/checkout@v4
# - name: Run Tests
# run: |
# .scripts/build.sh -s "Pulse" -d "OS=26.2,name=Apple Watch Series 10 (46mm)"
# .scripts/build.sh -s "PulseUI" -d "OS=26.2,name=Apple Watch Series 10 (46mm)"
macos-xcode-26-0:
name: Unit Tests (macOS, Xcode 26.0)
runs-on: macOS-26
timeout-minutes: 20
env:
DEVELOPER_DIR: /Applications/Xcode_26.0.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- name: Run Tests
run: .scripts/build.sh -d "platform=macOS"
swift-build:
name: Swift Build (SPM)
runs-on: macOS-26
timeout-minutes: 20
env:
DEVELOPER_DIR: /Applications/Xcode_26.2.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- name: Build
run: swift build
build-demo-ios:
name: Build Demo (iOS)
runs-on: macOS-26
timeout-minutes: 20
env:
DEVELOPER_DIR: /Applications/Xcode_26.2.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- name: Boot simulator
run: |
xcrun simctl boot "iPhone 17 Pro"
xcrun simctl bootstatus "iPhone 17 Pro" -b
- name: Build Demo
run: |
cd Demo
set -o pipefail
xcodebuild build -scheme "Pulse Demo iOS" -destination "OS=26.2,name=iPhone 17 Pro" | xcpretty
build-demo-tvos:
name: Build Demo (tvOS)
runs-on: macOS-26
timeout-minutes: 20
env:
DEVELOPER_DIR: /Applications/Xcode_26.2.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- name: Boot simulator
run: |
xcrun simctl boot "Apple TV"
xcrun simctl bootstatus "Apple TV" -b
- name: Build Demo
run: |
cd Demo
set -o pipefail
xcodebuild build -scheme "Pulse Demo tvOS" -destination "OS=26.2,name=Apple TV" | xcpretty
build-integration-examples-ios:
name: Build Integration Examples (iOS)
runs-on: macOS-26
timeout-minutes: 20
env:
DEVELOPER_DIR: /Applications/Xcode_26.2.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- name: Boot simulator
run: |
xcrun simctl boot "iPhone 17 Pro"
xcrun simctl bootstatus "iPhone 17 Pro" -b
- name: Build Integration Tests
run: |
cd Demo
set -o pipefail
xcodebuild build -scheme "Pulse Integration Examples iOS" -destination "OS=26.2,name=iPhone 17 Pro" | xcpretty