Skip to content

Commit ce1bb03

Browse files
authored
Merge branch 'main' into cheryllin/ppl
2 parents 15046ff + d9fd34b commit ce1bb03

File tree

253 files changed

+4461
-3063
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

253 files changed

+4461
-3063
lines changed

.github/actions/notices_generation/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ outputs:
2626
runs:
2727
using: 'composite'
2828
steps:
29-
- uses: ruby/setup-ruby@v1
29+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
3030
with:
3131
ruby-version: "2.7"
3232
- name: Generate a NOTICES file

.github/actions/testing_report_generation/app.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ def get_workflows(client, repo_name)
107107
end
108108

109109
workflow_text = "[%s](%s)" % [wf.name, wf.html_url]
110-
runs = client.workflow_runs(REPO_NAME_WITH_OWNER, File.basename(wf.path), :event => "schedule").workflow_runs
110+
# If the below request 404s, it may be because the repo doesn't own that workflow (e.g.
111+
# `dependabot-updates`). In these cases, add the workflow to the `EXCLUDED_WORKFLOWS` env
112+
# var that's set in `.github/workflows/generate_issues.yml`.
113+
runs = client.workflow_runs(REPO_NAME_WITH_OWNER, workflow_file, :event => "schedule").workflow_runs
111114
runs = runs.sort_by { |run| -run.created_at.to_i }
112115
latest_run = runs[0]
113116
if latest_run.nil?

.github/workflows/abtesting.yml

Lines changed: 27 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: abtesting
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
paths:
67
- 'FirebaseABTesting**'
@@ -16,18 +17,26 @@ concurrency:
1617
cancel-in-progress: true
1718

1819
jobs:
20+
spm:
21+
uses: ./.github/workflows/common.yml
22+
with:
23+
target: ABTestingUnit
24+
25+
catalyst:
26+
uses: ./.github/workflows/common_catalyst.yml
27+
with:
28+
product: FirebaseABTesting
29+
target: FirebaseABTesting-Unit-unit
30+
1931
pod-lib-lint:
2032
# Don't run on private repo unless it is a PR.
2133
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
2234

2335
strategy:
2436
matrix:
2537
include:
26-
- os: macos-13
27-
xcode: Xcode_15.2
28-
target: ios
2938
- os: macos-14
30-
xcode: Xcode_15.4
39+
xcode: Xcode_16.2
3140
target: ios
3241
- os: macos-15
3342
xcode: Xcode_16.2
@@ -44,127 +53,32 @@ jobs:
4453
runs-on: ${{ matrix.os }}
4554
steps:
4655
- uses: actions/checkout@v4
47-
- uses: ruby/setup-ruby@v1
56+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
4857
- name: Setup Bundler
4958
run: scripts/setup_bundler.sh
5059
- name: Xcode
5160
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
52-
- uses: nick-fields/retry@v3
61+
- uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
5362
with:
5463
timeout_minutes: 120
5564
max_attempts: 3
5665
retry_on: error
5766
retry_wait_seconds: 120
5867
command: scripts/pod_lib_lint.rb FirebaseABTesting.podspec --platforms=${{ matrix.target }}
5968

60-
spm-package-resolved:
61-
env:
62-
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
63-
runs-on: macos-14
64-
outputs:
65-
cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
66-
steps:
67-
- uses: actions/checkout@v4
68-
- name: Generate Swift Package.resolved
69-
id: swift_package_resolve
70-
run: |
71-
swift package resolve
72-
- name: Generate cache key
73-
id: generate_cache_key
74-
run: |
75-
cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
76-
echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
77-
- uses: actions/cache/save@v4
78-
id: cache
79-
with:
80-
path: .build
81-
key: ${{ steps.generate_cache_key.outputs.cache_key }}
82-
83-
spm:
84-
# Don't run on private repo unless it is a PR.
85-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
86-
needs: [spm-package-resolved]
87-
strategy:
88-
matrix:
89-
include:
90-
- os: macos-13
91-
xcode: Xcode_15.2
92-
target: iOS
93-
- os: macos-14
94-
xcode: Xcode_15.4
95-
target: iOS
96-
- os: macos-15
97-
xcode: Xcode_16.2
98-
target: iOS
99-
- os: macos-15
100-
xcode: Xcode_16.2
101-
target: tvOS
102-
- os: macos-15
103-
xcode: Xcode_16.2
104-
target: macOS
105-
- os: macos-15
106-
xcode: Xcode_16.2
107-
target: watchOS
108-
- os: macos-15
109-
xcode: Xcode_16.2
110-
target: catalyst
111-
- os: macos-15
112-
xcode: Xcode_16.2
113-
target: visionOS
114-
runs-on: ${{ matrix.os }}
115-
steps:
116-
- uses: actions/checkout@v4
117-
- uses: actions/cache/restore@v4
118-
with:
119-
path: .build
120-
key: ${{needs.spm-package-resolved.outputs.cache_key}}
121-
- name: Xcode
122-
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
123-
- name: Install visionOS, if needed.
124-
if: matrix.target == 'visionOS'
125-
run: xcodebuild -downloadPlatform visionOS
126-
- name: Initialize xcodebuild
127-
run: scripts/setup_spm_tests.sh
128-
- uses: nick-fields/retry@v3
129-
with:
130-
timeout_minutes: 120
131-
max_attempts: 3
132-
retry_on: error
133-
retry_wait_seconds: 120
134-
command: scripts/build.sh ABTestingUnit ${{ matrix.target }} spm
135-
136-
catalyst:
137-
# Don't run on private repo unless it is a PR.
138-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
139-
140-
runs-on: macos-14
141-
steps:
142-
- uses: actions/checkout@v4
143-
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
144-
with:
145-
cache_key: catalyst${{ matrix.os }}
146-
- uses: ruby/setup-ruby@v1
147-
- name: Setup Bundler
148-
run: scripts/setup_bundler.sh
149-
- uses: nick-fields/retry@v3
150-
with:
151-
timeout_minutes: 120
152-
max_attempts: 3
153-
retry_on: error
154-
retry_wait_seconds: 120
155-
command: scripts/test_catalyst.sh FirebaseABTesting test FirebaseABTesting-Unit-unit
156-
15769
quickstart:
15870
# Don't run on private repo unless it is a PR.
15971
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
16072

16173
env:
16274
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
16375
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
164-
runs-on: macos-14
76+
runs-on: macos-15
16577
steps:
16678
- uses: actions/checkout@v4
167-
- uses: ruby/setup-ruby@v1
79+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
80+
- name: Xcode
81+
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
16882
- name: Setup quickstart
16983
env:
17084
LEGACY: true
@@ -184,10 +98,10 @@ jobs:
18498
env:
18599
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
186100
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
187-
runs-on: macos-14
101+
runs-on: macos-15
188102
steps:
189103
- uses: actions/checkout@v4
190-
- uses: ruby/setup-ruby@v1
104+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
191105
- uses: actions/setup-python@v5
192106
with:
193107
python-version: '3.11'
@@ -198,6 +112,8 @@ jobs:
198112
- name: Install Secret GoogleService-Info.plist
199113
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
200114
quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
115+
- name: Xcode
116+
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
201117
- name: Build swift quickstart
202118
env:
203119
LEGACY: true
@@ -213,7 +129,7 @@ jobs:
213129
# Don't run on private repo.
214130
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
215131

216-
runs-on: macos-14
132+
runs-on: macos-15
217133
strategy:
218134
matrix:
219135
target: [ios, tvos, macos]
@@ -223,9 +139,11 @@ jobs:
223139
needs: pod-lib-lint
224140
steps:
225141
- uses: actions/checkout@v4
226-
- uses: ruby/setup-ruby@v1
142+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
227143
- name: Setup Bundler
228144
run: scripts/setup_bundler.sh
145+
- name: Xcode
146+
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
229147
- name: PodLibLint ABTesting Cron
230148
run: |
231149
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \

.github/workflows/analytics.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: analytics
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
paths:
67
- 'FirebaseAnalytics**'
@@ -23,17 +24,17 @@ jobs:
2324
strategy:
2425
matrix:
2526
target: [ios, tvos, macos]
26-
os: [macos-14, macos-13]
27+
os: [macos-14, macos-15]
2728
include:
2829
- os: macos-14
29-
xcode: Xcode_15.3
30-
- os: macos-13
31-
xcode: Xcode_15.2
30+
xcode: Xcode_16.2
31+
- os: macos-15
32+
xcode: Xcode_16.3
3233
runs-on: ${{ matrix.os }}
3334

3435
steps:
3536
- uses: actions/checkout@v4
36-
- uses: ruby/setup-ruby@v1
37+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
3738
- name: Setup Bundler
3839
run: scripts/setup_bundler.sh
3940
- name: Xcode

.github/workflows/api_diff_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: API Diff Report
22

3-
on: [pull_request]
3+
on: [pull_request, workflow_dispatch]
44

55
concurrency:
66
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}

0 commit comments

Comments
 (0)