Skip to content

Commit

Permalink
[Infra] Switch zip building over to Xcode 15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 authored Apr 9, 2024
1 parent d07db9b commit 6945629
Showing 1 changed file with 37 additions and 67 deletions.
104 changes: 37 additions & 67 deletions .github/workflows/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ jobs:
package-release:
# Don't run on private repo.
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: macos-12
strategy:
matrix:
os: [macos-13, macos-13-arm64]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
with:
cache_key: package-release
- name: Xcode 14.1
run: sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer
- name: Xcode 15.2
run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
- uses: ruby/setup-ruby@v1
- name: Setup Bundler
run: ./scripts/setup_bundler.sh
Expand All @@ -54,11 +57,11 @@ jobs:
build:
# Don't run on private repo unless it is a PR.
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: macos-12
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Xcode 14.1
run: sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer
- name: Xcode 15.2
run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
- name: Build
run: |
cd ReleaseTooling
Expand All @@ -68,14 +71,17 @@ jobs:
# Don't run on private repo.
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: build
runs-on: macos-12
strategy:
matrix:
os: [macos-13, macos-13-arm64]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
with:
cache_key: package-head
- name: Xcode 14.1
run: sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer
- name: Xcode 15.2
run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
- uses: ruby/setup-ruby@v1
- name: Setup Bundler
run: ./scripts/setup_bundler.sh
Expand All @@ -102,12 +108,8 @@ jobs:
SDK: "ABTesting"
strategy:
matrix:
os: [macos-12, macos-13]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: Xcode_15.2
os: [macos-13, macos-13-arm64]
xcode: Xcode_15.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -163,12 +165,8 @@ jobs:
SDK: "Authentication"
strategy:
matrix:
os: [macos-12, macos-13]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: Xcode_15.2
os: macos-13
xcode: Xcode_15.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -216,12 +214,8 @@ jobs:
SDK: "Config"
strategy:
matrix:
os: [macos-12, macos-13]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: Xcode_15.2
os: macos-13
xcode: Xcode_15.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -267,12 +261,8 @@ jobs:
SDK: "Crashlytics"
strategy:
matrix:
os: [macos-12, macos-13]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: Xcode_15.2
os: macos-13
xcode: Xcode_15.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -341,10 +331,8 @@ jobs:
SDK: "Database"
strategy:
matrix:
os: [macos-12]
include:
- os: macos-12
xcode: Xcode_14.2
os: macos-13
xcode: Xcode_15.2
# TODO: Building FirebaseUI fails on Xcode 15 because it needs to sign the resources.
# - os: macos-13
# xcode: Xcode_15.2
Expand Down Expand Up @@ -397,12 +385,8 @@ jobs:
SDK: "DynamicLinks"
strategy:
matrix:
os: [macos-12, macos-13]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: Xcode_15.2
os: macos-13
xcode: Xcode_15.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -456,10 +440,8 @@ jobs:
SDK: "Firestore"
strategy:
matrix:
os: [macos-12]
include:
- os: macos-12
xcode: Xcode_14.2
os: macos-13
xcode: Xcode_15.2
# TODO: Building FirebaseUI fails on Xcode 15 because it needs to sign the resources.
# - os: macos-13
# xcode: Xcode_15.2
Expand Down Expand Up @@ -508,8 +490,8 @@ jobs:
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
runs-on: macos-13
steps:
- name: Xcode 14.1
run: sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer
- name: Xcode 15.2
run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
- uses: actions/checkout@v4
- name: Get framework dir
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -541,12 +523,8 @@ jobs:
SDK: "InAppMessaging"
strategy:
matrix:
os: [macos-12, macos-13]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: Xcode_15.2
os: macos-13
xcode: Xcode_15.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -597,12 +575,8 @@ jobs:
SDK: "Messaging"
strategy:
matrix:
os: [macos-12, macos-13]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: Xcode_15.2
os: macos-13
xcode: Xcode_15.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -652,12 +626,8 @@ jobs:
SDK: "Storage"
strategy:
matrix:
os: [macos-12, macos-13]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: Xcode_15.2
os: macos-13
xcode: Xcode_15.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 6945629

Please sign in to comment.