Skip to content

Commit 027fb5c

Browse files
committed
feat: set Xcode version one time in release.zip.yml
1 parent 7cbbc87 commit 027fb5c

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/release.zip.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ env:
1919
# When specified, build jobs will be skipped and the specified
2020
# run's artifacts will be used for testing.
2121
PINNED_RUN_ID: ''
22+
# Firebase's minimum supported Xcode. This what the binary artifacts are
23+
# built with. Changing this version must only be done in alignment with
24+
# updates to the minimum supported Xcode supported for App Store submissions.
25+
MIN_XCODE: Xcode_16.2 # WARNING: Read above comment.
2226

2327
on:
2428
pull_request:
@@ -81,8 +85,8 @@ jobs:
8185
runs-on: macos-14
8286
steps:
8387
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
84-
- name: Xcode 16.2
85-
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
88+
- name: Xcode
89+
run: sudo xcode-select -s /Applications/${{ env.MIN_XCODE }}.app/Contents/Developer
8690
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
8791
- name: Setup Bundler
8892
run: ./scripts/setup_bundler.sh
@@ -110,8 +114,8 @@ jobs:
110114
runs-on: macos-14
111115
steps:
112116
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
113-
- name: Xcode 16.2
114-
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
117+
- name: Xcode
118+
run: sudo xcode-select -s /Applications/${{ env.MIN_XCODE }}.app/Contents/Developer
115119
- name: Build
116120
run: |
117121
cd ReleaseTooling
@@ -126,8 +130,8 @@ jobs:
126130
runs-on: macos-14
127131
steps:
128132
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
129-
- name: Xcode 16.2
130-
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
133+
- name: Xcode
134+
run: sudo xcode-select -s /Applications/${{ env.MIN_XCODE }}.app/Contents/Developer
131135
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
132136
- name: Setup Bundler
133137
run: ./scripts/setup_bundler.sh
@@ -176,8 +180,8 @@ jobs:
176180
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
177181
runs-on: macos-14
178182
steps:
179-
- name: Xcode 16.2
180-
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
183+
- name: Xcode
184+
run: sudo xcode-select -s /Applications/${{ env.MIN_XCODE }}.app/Contents/Developer
181185
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
182186
- name: Get framework dir
183187
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0

0 commit comments

Comments
 (0)