Skip to content

Commit dd3fea8

Browse files
authored
More Xcode 15 CI (#12038)
1 parent 3fb21b0 commit dd3fea8

16 files changed

+223
-72
lines changed

.github/workflows/abtesting.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,24 @@ jobs:
2020
# Don't run on private repo unless it is a PR.
2121
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
2222

23-
runs-on: macos-12
2423
strategy:
2524
matrix:
26-
target: [ios, tvos, macos, watchos]
25+
# TODO: macos tests are blocked by https://github.com/erikdoe/ocmock/pull/532
26+
target: [ios, tvos, macos --skip-tests, watchos]
27+
os: [macos-12, macos-13]
28+
include:
29+
- os: macos-12
30+
xcode: Xcode_14.2
31+
- os: macos-13
32+
xcode: Xcode_15.0.1
33+
runs-on: ${{ matrix.os }}
2734
steps:
2835
- uses: actions/checkout@v3
2936
- uses: ruby/setup-ruby@v1
3037
- name: Setup Bundler
3138
run: scripts/setup_bundler.sh
39+
- name: Xcode
40+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
3241
- name: Build and test
3342
run: |
3443
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseABTesting.podspec \
@@ -37,15 +46,23 @@ jobs:
3746
spm:
3847
# Don't run on private repo unless it is a PR.
3948
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
40-
runs-on: macos-12
4149
strategy:
4250
matrix:
4351
target: [iOS, tvOS, macOS, catalyst, watchOS]
52+
os: [macos-12, macos-13]
53+
include:
54+
- os: macos-12
55+
xcode: Xcode_14.2
56+
- os: macos-13
57+
xcode: Xcode_15.0.1
58+
runs-on: ${{ matrix.os }}
4459
steps:
4560
- uses: actions/checkout@v3
4661
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
4762
with:
4863
cache_key: ${{ matrix.os }}
64+
- name: Xcode
65+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
4966
- name: Initialize xcodebuild
5067
run: scripts/setup_spm_tests.sh
5168
- name: Unit Tests

.github/workflows/analytics.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,24 @@ jobs:
2020
# Don't run on private repo unless it is a PR.
2121
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
2222

23-
runs-on: macos-12
24-
2523
strategy:
2624
matrix:
2725
target: [ios, tvos, macos]
26+
os: [macos-12, macos-13]
27+
include:
28+
- os: macos-12
29+
xcode: Xcode_14.2
30+
- os: macos-13
31+
xcode: Xcode_15.0.1
32+
runs-on: ${{ matrix.os }}
33+
2834
steps:
2935
- uses: actions/checkout@v3
3036
- uses: ruby/setup-ruby@v1
3137
- name: Setup Bundler
3238
run: scripts/setup_bundler.sh
39+
- name: Xcode
40+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
3341
- name: GoogleAppMeasurement
3442
run: scripts/third_party/travis/retry.sh pod spec lint GoogleAppMeasurement.podspec --platforms=${{ matrix.target }} --sources=https://github.com/firebase/SpecsDev.git,https://github.com/firebase/SpecsStaging.git,https://cdn.cocoapods.org/
3543
- name: FirebaseAnalytics

.github/workflows/appdistribution.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,23 @@ jobs:
1919
# Don't run on private repo unless it is a PR.
2020
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
2121

22-
runs-on: macos-12
2322
strategy:
2423
matrix:
2524
target: [ios]
25+
os: [macos-12, macos-13]
26+
include:
27+
- os: macos-12
28+
xcode: Xcode_14.2
29+
- os: macos-13
30+
xcode: Xcode_15.0.1
31+
runs-on: ${{ matrix.os }}
2632
steps:
2733
- uses: actions/checkout@v3
2834
- uses: ruby/setup-ruby@v1
2935
- name: Setup Bundler
3036
run: scripts/setup_bundler.sh
37+
- name: Xcode
38+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
3139
- name: Build and test
3240
run: |
3341
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
@@ -37,12 +45,22 @@ jobs:
3745
# Don't run on private repo unless it is a PR.
3846
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
3947

40-
runs-on: macos-12
48+
strategy:
49+
matrix:
50+
os: [macos-12, macos-13]
51+
include:
52+
- os: macos-12
53+
xcode: Xcode_14.2
54+
- os: macos-13
55+
xcode: Xcode_15.0.1
56+
runs-on: ${{ matrix.os }}
4157
steps:
4258
- uses: actions/checkout@v3
4359
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
4460
with:
4561
cache_key: ${{ matrix.os }}
62+
- name: Xcode
63+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
4664
- name: Initialize xcodebuild
4765
run: scripts/setup_spm_tests.sh
4866
- name: iOS Unit Tests

.github/workflows/auth.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,27 @@ jobs:
2121
# Don't run on private repo unless it is a PR.
2222
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
2323

24-
runs-on: macos-12
2524
strategy:
2625
matrix:
2726
podspec: [FirebaseAuthInterop.podspec, FirebaseAuth.podspec]
28-
target: [ios, tvos, macos, watchos]
27+
# TODO: macos tests are blocked by https://github.com/erikdoe/ocmock/pull/532
28+
target: [ios, tvos, macos --skip-tests, watchos]
29+
os: [macos-12, macos-13]
30+
include:
31+
- os: macos-12
32+
xcode: Xcode_14.2
33+
- os: macos-13
34+
xcode: Xcode_15.0.1
35+
runs-on: ${{ matrix.os }}
2936
steps:
3037
- uses: actions/checkout@v3
3138
- uses: ruby/setup-ruby@v1
3239
- name: Setup Bundler
3340
run: scripts/setup_bundler.sh
3441
- name: Configure test keychain
3542
run: scripts/configure_test_keychain.sh
43+
- name: Xcode
44+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
3645
- name: Build and test
3746
run: |
3847
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }}
@@ -77,15 +86,23 @@ jobs:
7786
spm:
7887
# Don't run on private repo unless it is a PR.
7988
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
80-
runs-on: macos-12
8189
strategy:
8290
matrix:
8391
target: [iOS, tvOS, macOS, catalyst, watchOS]
92+
os: [macos-12, macos-13]
93+
include:
94+
- os: macos-12
95+
xcode: Xcode_14.2
96+
- os: macos-13
97+
xcode: Xcode_15.0.1
98+
runs-on: ${{ matrix.os }}
8499
steps:
85100
- uses: actions/checkout@v3
86101
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
87102
with:
88103
cache_key: ${{ matrix.os }}
104+
- name: Xcode
105+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
89106
- name: Initialize xcodebuild
90107
run: scripts/setup_spm_tests.sh
91108
- name: Unit Tests

.github/workflows/core.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
matrix:
2323
# TODO: macos tests are blocked by https://github.com/erikdoe/ocmock/pull/532
24-
target: [ios, tvos, macos --skip-tests]
24+
target: [ios, tvos, macos --skip-tests, watchos]
2525
os: [macos-12, macos-13]
2626
include:
2727
- os: macos-12
@@ -34,6 +34,8 @@ jobs:
3434
- uses: ruby/setup-ruby@v1
3535
- name: Setup Bundler
3636
run: scripts/setup_bundler.sh
37+
- name: Xcode
38+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
3739
- name: Build and test
3840
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCore.podspec --platforms=${{ matrix.target }}
3941

@@ -55,6 +57,8 @@ jobs:
5557
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
5658
with:
5759
cache_key: ${{ matrix.os }}
60+
- name: Xcode
61+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
5862
- name: Initialize xcodebuild
5963
run: scripts/setup_spm_tests.sh
6064
- name: Unit Tests

.github/workflows/core_extension.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,23 @@ jobs:
1717
pod-lib-lint:
1818
# Don't run on private repo unless it is a PR.
1919
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
20-
runs-on: macos-12
2120
strategy:
2221
matrix:
23-
target: [ios, tvos, macos]
22+
target: [ios, tvos, macos, watchos]
23+
os: [macos-12, macos-13]
24+
include:
25+
- os: macos-12
26+
xcode: Xcode_14.2
27+
- os: macos-13
28+
xcode: Xcode_15.0.1
29+
runs-on: ${{ matrix.os }}
2430
steps:
2531
- uses: actions/checkout@v3
2632
- uses: ruby/setup-ruby@v1
2733
- name: Setup Bundler
2834
run: scripts/setup_bundler.sh
35+
- name: Xcode
36+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
2937
- name: Build and test
3038
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreExtension.podspec --platforms=${{ matrix.target }}
3139

.github/workflows/core_internal.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,45 @@ jobs:
1515
pod-lib-lint:
1616
# Don't run on private repo unless it is a PR.
1717
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
18-
runs-on: macos-12
1918
strategy:
2019
matrix:
21-
target: [ios, tvos, macos]
20+
target: [ios, tvos, macos, watchos]
21+
os: [macos-12, macos-13]
22+
include:
23+
- os: macos-12
24+
xcode: Xcode_14.2
25+
- os: macos-13
26+
xcode: Xcode_15.0.1
27+
runs-on: ${{ matrix.os }}
2228
steps:
2329
- uses: actions/checkout@v3
2430
- uses: ruby/setup-ruby@v1
2531
- name: Setup Bundler
2632
run: scripts/setup_bundler.sh
33+
- name: Xcode
34+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
2735
- name: Build and test
2836
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }}
2937

3038
spm:
3139
# Don't run on private repo unless it is a PR.
3240
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
33-
runs-on: macos-12
3441
strategy:
3542
matrix:
3643
target: [iOS, tvOS, macOS, catalyst, watchOS]
44+
os: [macos-12, macos-13]
45+
include:
46+
- os: macos-12
47+
xcode: Xcode_14.2
48+
- os: macos-13
49+
xcode: Xcode_15.0.1
50+
runs-on: ${{ matrix.os }}
3751
steps:
3852
- uses: actions/checkout@v3
3953
- name: Initialize xcodebuild
4054
run: scripts/setup_spm_tests.sh
55+
- name: Xcode
56+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
4157
- name: FirebaseCoreInternalTests
4258
run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCoreInternalTests ${{ matrix.target }} spm
4359

.github/workflows/crashlytics.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,32 +22,47 @@ jobs:
2222
# Don't run on private repo unless it is a PR.
2323
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
2424

25-
runs-on: macos-12
26-
2725
strategy:
2826
matrix:
2927
target: [ios, tvos, macos, watchos --skip-tests]
28+
os: [macos-12, macos-13]
29+
include:
30+
- os: macos-12
31+
xcode: Xcode_14.2
32+
- os: macos-13
33+
xcode: Xcode_15.0.1
34+
runs-on: ${{ matrix.os }}
3035
steps:
3136
- uses: actions/checkout@v3
3237
- uses: ruby/setup-ruby@v1
3338
- name: Setup Bundler
3439
run: scripts/setup_bundler.sh
40+
- name: Xcode
41+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
3542
- name: Build and test
3643
run: |
3744
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }}
3845
3946
spm:
4047
# Don't run on private repo unless it is a PR.
4148
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
42-
runs-on: macos-12
4349
strategy:
4450
matrix:
4551
target: [iOS, tvOS, macOS, catalyst, watchOS]
52+
os: [macos-12, macos-13]
53+
include:
54+
- os: macos-12
55+
xcode: Xcode_14.2
56+
- os: macos-13
57+
xcode: Xcode_15.0.1
58+
runs-on: ${{ matrix.os }}
4659
steps:
4760
- uses: actions/checkout@v3
4861
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
4962
with:
5063
cache_key: ${{ matrix.os }}
64+
- name: Xcode
65+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
5166
- name: Initialize xcodebuild
5267
run: scripts/setup_spm_tests.sh
5368
- name: Unit Tests

0 commit comments

Comments
 (0)