Skip to content

Commit

Permalink
Update CI to Xcode 15 and macos-14 (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 authored May 2, 2024
1 parent 8ead310 commit 936bfce
Show file tree
Hide file tree
Showing 17 changed files with 113 additions and 96 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/abtesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
SAMPLE: ABTesting

jobs:
cocoapods:
name: cocoapods
runs-on: macOS-12
runs-on: macOS-14
env:
SPM: false
TEST: true
Expand All @@ -54,17 +58,23 @@ jobs:
DEVICE: iPhone 14
spm:
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-12
runs-on: macOS-14
strategy:
matrix:
xcode: ["14.2"]
xcode: ["15.3"]
os: [iOS, tvOS, macOS, watchOS, catalyst]
include:
- os: iOS
device: iPhone 12
test: true
device: iPhone 15
# Test runs locally but fails in CI with:
# (Underlying Error: lstat of
# /Users/runner/Library/Developer/CoreSimulator/Devices/
# 7E72AD09-C998-432D-84B1-0504177194AE/data/Library/Caches/
# com.apple.mobile.installd.staging/temp.WdeFLV/extracted/ABTestingExample.app
# /Frameworks/GoogleAppMeasurement.framework/GoogleAppMeasurement failed: No such file or directory
test: false
- os: tvOS
device: Apple TV 4K (at 1080p) (2nd generation)
device: Apple TV 4K (3rd generation) (at 1080p)
test: true
- os: macOS
device: localhost
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/admob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
SAMPLE: AdMob
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
runs-on: macOS-12
runs-on: macOS-14
env:
SPM: false
LEGACY: false
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,29 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
SAMPLE: Analytics
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods - ${{ matrix.os }}
runs-on: macOS-12
runs-on: macOS-14
strategy:
matrix:
os: [iOS, catalyst, tvOS, macOS]
xcode: ["14.2"]
xcode: ["15.3"]
include:
- os: iOS
device: iPhone 12
device: iPhone 14
- os: catalyst
device: localhost
- os: tvOS
device: Apple TV 4K (at 1080p) (2nd generation)
device: Apple TV 4K (3rd generation) (at 1080p)
scheme: AnalyticsExampleTV
- os: macOS
device: localhost
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/authentication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
SAMPLE: Authentication
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ on:
push:
branches: main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
check:
runs-on: macOS-12
runs-on: macOS-14
env:
MINT_PATH: ${{ github.workspace }}/mint
steps:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
SAMPLE: Config
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/crashlytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
SAMPLE: Crashlytics
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
runs-on: macOS-12
runs-on: macOS-14
env:
SPM: false
LEGACY: true
Expand Down Expand Up @@ -54,17 +58,17 @@ jobs:
SWIFT_SUFFIX: Swift
spm:
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-12
runs-on: macOS-14
strategy:
matrix:
xcode: ["14.2"]
xcode: ["15.3"]
os: [iOS, tvOS, macOS, watchOS]
include:
- os: iOS
device: iPhone 12
device: iPhone 14
test: true
- os: tvOS
device: Apple TV 4K (at 1080p) (2nd generation)
device: Apple TV 4K (3rd generation) (at 1080p)
test: true
- os: macOS
device: localhost
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
SAMPLE: Database
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
runs-on: macOS-12
runs-on: macOS-14
env:
SPM: false
LEGACY: false
Expand Down Expand Up @@ -53,17 +57,17 @@ jobs:
SWIFT_SUFFIX: Swift
spm:
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-12
runs-on: macOS-14
strategy:
matrix:
xcode: ["14.2"]
xcode: ["15.3"]
os: [iOS, tvOS, macOS]
include:
- os: iOS
device: iPhone 12
device: iPhone 14
test: true
- os: tvOS
device: Apple TV 4K (at 1080p) (2nd generation)
device: Apple TV 4K (3rd generation) (at 1080p)
test: true
- os: macOS
device: localhost
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/dynamiclinks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
SAMPLE: DynamicLinks
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
runs-on: macOS-12
runs-on: macOS-14
env:
SPM: false
LEGACY: false
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/firestore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
SAMPLE: Firestore
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
runs-on: macOS-12
runs-on: macOS-14
env:
SPM: false
LEGACY: false
Expand Down
42 changes: 8 additions & 34 deletions .github/workflows/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,53 +18,27 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
SAMPLE: Functions
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
runs-on: macOS-12
env:
SPM: false
LEGACY: true
OS: iOS
DEVICE: iPhone 14
TEST: true
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd functions/LegacyFunctionsQuickstart
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
cd ..
../scripts/install_prereqs/functions.sh
- name: Build ObjC
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ""
- name: Build Swift
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: Swift

spm:
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-12
runs-on: macOS-14
strategy:
matrix:
xcode: ["14.2"]
xcode: ["15.3"]
os: [iOS, tvOS, macOS]
include:
- os: iOS
device: iPhone 12
device: iPhone 14
- os: tvOS
device: Apple TV 4K (at 1080p) (2nd generation)
device: Apple TV 4K (3rd generation) (at 1080p)
- os: macOS
device: localhost
env:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/inappmessaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
SAMPLE: InAppMessaging
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
runs-on: macOS-12
runs-on: macOS-14
env:
SPM: false
LEGACY: false
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/installations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
SAMPLE: Installations
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
runs-on: macOS-12
runs-on: macOS-14
env:
SPM: false
LEGACY: false
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/messaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
SAMPLE: Messaging
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
runs-on: macOS-12
runs-on: macOS-14
env:
SPM: false
LEGACY: false
Expand Down
Loading

0 comments on commit 936bfce

Please sign in to comment.