-
Notifications
You must be signed in to change notification settings - Fork 41
194 lines (192 loc) · 8.03 KB
/
build.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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
name: Builds for Various Architectures
on: [pull_request]
jobs:
build_iOS:
name: Build iOS
runs-on: macos-14
timeout-minutes: 60
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
working-directory: ./builder
strategy:
matrix:
destination: ["platform=iOS Simulator,name=iPhone 14"]
scheme:
- TealiumCore
- TealiumCollect
- TealiumLifecycle
- TealiumVisitorService
- TealiumLocation
- TealiumMedia
- TealiumRemoteCommands
- TealiumTagManagement
- TealiumAttribution
- TealiumAutotracking
steps:
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable
- uses: actions/checkout@v2
- name: Build iOS - ${{ matrix.scheme }}
run: |
MAX_ATTEMPT=10
ATTEMPT=0
while [ -z $SUCCESS ] && [ "$ATTEMPT" -le "$MAX_ATTEMPT" ]; do
xcodebuild clean -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" | grep -q "CLEAN SUCCEEDED" && SUCCESS=true
ATTEMPT=$(($ATTEMPT+1))
done
set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project tealium-swift.xcodeproj -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean build | xcpretty
working-directory: ${{ env.working-directory }}
build_macOS:
name: Build macOS
runs-on: macos-14
timeout-minutes: 60
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
working-directory: ./builder
strategy:
matrix:
destination: ["platform=macOS,arch=x86_64"]
scheme:
- TealiumCore
- TealiumCollect
- TealiumLifecycle
- TealiumMedia
- TealiumVisitorService
steps:
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable
- uses: actions/checkout@v2
- name: Build macOS - ${{ matrix.scheme }}
run: |
MAX_ATTEMPT=10
ATTEMPT=0
while [ -z $SUCCESS ] && [ "$ATTEMPT" -le "$MAX_ATTEMPT" ]; do
xcodebuild clean -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" | grep -q "CLEAN SUCCEEDED" && SUCCESS=true
ATTEMPT=$(($ATTEMPT+1))
done
set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project tealium-swift.xcodeproj -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean build | xcpretty
working-directory: ${{ env.working-directory }}
build_tvOS:
name: Build tvOS
runs-on: macos-14
timeout-minutes: 60
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
working-directory: ./builder
strategy:
matrix:
destination: ["platform=tvOS Simulator,name=Apple TV"]
scheme:
- TealiumCore
- TealiumCollect
- TealiumLifecycle
- TealiumMedia
- TealiumVisitorService
steps:
- uses: actions/checkout@v2
- name: Build tvOS - ${{ matrix.scheme }}
run: |
MAX_ATTEMPT=10
ATTEMPT=0
while [ -z $SUCCESS ] && [ "$ATTEMPT" -le "$MAX_ATTEMPT" ]; do
xcodebuild clean -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" | grep -q "CLEAN SUCCEEDED" && SUCCESS=true
ATTEMPT=$(($ATTEMPT+1))
done
set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project tealium-swift.xcodeproj -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean build | xcpretty
working-directory: ${{ env.working-directory }}
build_TealiumSwiftExample_iOS:
name: Build TealiumSwiftExample iOS
runs-on: macos-14
timeout-minutes: 60
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
working-directory: ./samples/TealiumSwiftExample
steps:
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable
- uses: actions/checkout@v2
- name: Build TealiumSwiftExample iOS
run: |
MAX_ATTEMPT=10
ATTEMPT=0
while [ -z $SUCCESS ] && [ "$ATTEMPT" -le "$MAX_ATTEMPT" ]; do
xcodebuild clean -scheme "TealiumSwiftExample" -destination "platform=iOS Simulator,name=iPhone 14" | grep -q "CLEAN SUCCEEDED" && SUCCESS=true
ATTEMPT=$(($ATTEMPT+1))
done
set -o pipefail && pod install && env NSUnbufferedIO=YES xcodebuild -workspace TealiumSwiftExample.xcworkspace -scheme "TealiumSwiftExample" -destination "platform=iOS Simulator,name=iPhone 14" clean build | xcpretty
working-directory: ${{ env.working-directory }}
build_TealiumSwiftExample_tvOS:
name: Build TealiumSwiftExample tvOS
runs-on: macos-14
timeout-minutes: 60
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
working-directory: ./samples/TealiumSwiftExample
steps:
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable
- uses: actions/checkout@v2
- name: Build TealiumSwiftExample tvOS
run: |
MAX_ATTEMPT=10
ATTEMPT=0
while [ -z $SUCCESS ] && [ "$ATTEMPT" -le "$MAX_ATTEMPT" ]; do
xcodebuild clean -scheme "TealiumSwiftExample" -destination "platform=iOS Simulator,name=iPhone 14" | grep -q "CLEAN SUCCEEDED" && SUCCESS=true
ATTEMPT=$(($ATTEMPT+1))
done
set -o pipefail && pod install && env NSUnbufferedIO=YES xcodebuild -workspace TealiumSwiftExample.xcworkspace -scheme "TealiumSwiftTVExample" -destination "platform=tvOS Simulator,name=Apple TV" clean build | xcpretty
working-directory: ${{ env.working-directory }}
build_ConsentManagerDemo:
name: Build ConsentManagerDemo
runs-on: macos-14
timeout-minutes: 60
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
working-directory: ./samples/ConsentManagerDemo
steps:
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable
- uses: actions/checkout@v2
- name: Build ConsentManagerDemo iOS
run: |
MAX_ATTEMPT=10
ATTEMPT=0
while [ -z $SUCCESS ] && [ "$ATTEMPT" -le "$MAX_ATTEMPT" ]; do
xcodebuild clean -scheme "ConsentManagerDemo" -destination "platform=iOS Simulator,name=iPhone 14" | grep -q "CLEAN SUCCEEDED" && SUCCESS=true
ATTEMPT=$(($ATTEMPT+1))
done
set -o pipefail && pod install && env NSUnbufferedIO=YES xcodebuild -workspace ConsentManagerDemo.xcworkspace -scheme "ConsentManagerDemo" -destination "platform=iOS Simulator,name=iPhone 14" clean build | xcpretty
working-directory: ${{ env.working-directory }}
build_VisitorServiceDemo:
name: Build TealiumVisitorProfileDemo
runs-on: macos-14
timeout-minutes: 60
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
working-directory: ./samples/VisitorServiceDemo
steps:
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable
- uses: actions/checkout@v2
- name: Build TealiumVisitorProfileDemo iOS
run: |
MAX_ATTEMPT=10
ATTEMPT=0
while [ -z $SUCCESS ] && [ "$ATTEMPT" -le "$MAX_ATTEMPT" ]; do
xcodebuild clean -scheme "TealiumVisitorProfileDemo" -destination "platform=iOS Simulator,name=iPhone 14" | grep -q "CLEAN SUCCEEDED" && SUCCESS=true
ATTEMPT=$(($ATTEMPT+1))
done
set -o pipefail && pod install && env NSUnbufferedIO=YES xcodebuild -workspace TealiumVisitorProfileDemo.xcworkspace -scheme "TealiumVisitorProfileDemo" -destination "platform=iOS Simulator,name=iPhone 14" clean build | xcpretty
working-directory: ${{ env.working-directory }}