20
20
storage :
21
21
# Don't run on private repo unless it is a PR.
22
22
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
23
+ strategy :
24
+ matrix :
25
+ include :
26
+ # Only one os to avoid contention in the integration tests.
27
+ # - os: macos-12
28
+ # xcode: Xcode_14.2
29
+ - os : macos-13
30
+ xcode : xcode_15.0.1
23
31
env :
24
32
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
25
- runs-on : macos-12
33
+ runs-on : ${{ matrix.os }}
26
34
steps :
27
35
- uses : actions/checkout@v3
28
36
- uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
@@ -43,35 +51,56 @@ jobs:
43
51
run : |
44
52
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Storage/Credentials.swift.gpg \
45
53
FirebaseStorage/Tests/Integration/Credentials.swift "$plist_secret"
54
+ - name : Xcode
55
+ run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
46
56
- name : BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
47
57
run : ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Storage all)
48
58
49
59
spm :
50
60
# Don't run on private repo unless it is a PR.
51
61
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
52
- runs-on : macos-12
62
+ strategy :
63
+ matrix :
64
+ include :
65
+ - os : macos-12
66
+ xcode : Xcode_14.2
67
+ - os : macos-13
68
+ xcode : xcode_15.0.1
69
+ runs-on : ${{ matrix.os }}
53
70
steps :
54
71
- uses : actions/checkout@v3
55
72
- uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
56
73
with :
57
74
cache_key : ${{ matrix.os }}
75
+ - name : Xcode
76
+ run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
58
77
- name : Initialize xcodebuild
59
78
run : scripts/setup_spm_tests.sh
60
79
- name : Swift Unit Tests
61
80
run : scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseStorageUnit iOS spm
62
81
63
82
spm-cron :
64
83
# Don't run on private repo.
65
- if : github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
66
- runs-on : macos-12
84
+ # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
67
85
strategy :
68
86
matrix :
69
87
target : [tvOS, macOS, catalyst, watchOS]
88
+ os : [macos-12, macos-13]
89
+ include :
90
+ - os : macos-12
91
+ xcode : Xcode_14.2
92
+ - os : macos-13
93
+ xcode : xcode_15.0.1
94
+ runs-on : ${{ matrix.os }}
70
95
steps :
71
96
- uses : actions/checkout@v3
72
97
- uses : mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
73
98
with :
74
99
cache_key : ${{ matrix.os }}
100
+ - name : Xcodes
101
+ run : ls -l /Applications/Xcode*
102
+ - name : Xcode
103
+ run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
75
104
- name : Initialize xcodebuild
76
105
run : scripts/setup_spm_tests.sh
77
106
- name : Unit Tests
@@ -80,11 +109,18 @@ jobs:
80
109
quickstart :
81
110
# Don't run on private repo unless it is a PR.
82
111
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
112
+ strategy :
113
+ matrix :
114
+ include :
115
+ - os : macos-12
116
+ xcode : Xcode_14.2
117
+ - os : macos-13
118
+ xcode : xcode_15.0.1
83
119
env :
84
120
plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
85
121
signin_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
86
122
LEGACY : true
87
- runs-on : macos-12
123
+ runs-on : ${{ matrix.os }}
88
124
steps :
89
125
- uses : actions/checkout@v3
90
126
- uses : ruby/setup-ruby@v1
93
129
- name : Install Secret GoogleService-Info.plist
94
130
run : scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
95
131
quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
132
+ - name : Xcode
133
+ run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
96
134
- name : Test objc quickstart
97
135
run : ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage true)
98
136
- name : Test swift quickstart
@@ -128,31 +166,49 @@ jobs:
128
166
pod-lib-lint :
129
167
# Don't run on private repo unless it is a PR.
130
168
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
131
- runs-on : macos-12
132
169
strategy :
133
170
matrix :
134
171
target : [ios, tvos, macos, watchos]
172
+ os : [macos-12, macos-13]
173
+ include :
174
+ - os : macos-12
175
+ xcode : Xcode_14.2
176
+ - os : macos-13
177
+ xcode : xcode_15.0.1
178
+ runs-on : ${{ matrix.os }}
135
179
steps :
136
180
- uses : actions/checkout@v3
137
181
- uses : ruby/setup-ruby@v1
138
182
- name : Setup Bundler
139
183
run : scripts/setup_bundler.sh
184
+ - name : Xcodes
185
+ run : ls -l /Applications/Xcode*
186
+ - name : Xcode
187
+ run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
140
188
- name : Build and test
141
189
run : |
142
190
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --test-specs=unit --platforms=${{ matrix.target }}
143
191
144
192
storage-cron-only :
145
193
# Don't run on private repo.
146
- if : github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
147
- runs-on : macos-12
194
+ # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
148
195
strategy :
149
196
matrix :
150
197
target : [ios, tvos, macos, watchos]
198
+ os : [macos-12, macos-13]
199
+ include :
200
+ - os : macos-12
201
+ xcode : Xcode_14.2
202
+ - os : macos-13
203
+ xcode : xcode_15.0.1
204
+ runs-on : ${{ matrix.os }}
151
205
needs : pod-lib-lint
152
206
steps :
153
207
- uses : actions/checkout@v3
154
208
- uses : ruby/setup-ruby@v1
155
209
- name : Setup Bundler
156
210
run : scripts/setup_bundler.sh
211
+ - name : Xcode
212
+ run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
157
213
- name : PodLibLint Storage Cron
158
214
run : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} --use-static-frameworks --skip-tests
0 commit comments