diff --git a/.github/workflows/abtesting.yml b/.github/workflows/abtesting.yml index 9b863a616..e26962da8 100644 --- a/.github/workflows/abtesting.yml +++ b/.github/workflows/abtesting.yml @@ -22,6 +22,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} SAMPLE: ABTesting @@ -29,7 +33,7 @@ env: jobs: cocoapods: name: cocoapods - runs-on: macOS-12 + runs-on: macOS-14 env: SPM: false TEST: true @@ -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 diff --git a/.github/workflows/admob.yml b/.github/workflows/admob.yml index 82223b1b5..e6acbf47a 100644 --- a/.github/workflows/admob.yml +++ b/.github/workflows/admob.yml @@ -18,6 +18,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: SAMPLE: AdMob secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} @@ -25,7 +29,7 @@ env: jobs: cocoapods: name: cocoapods - runs-on: macOS-12 + runs-on: macOS-14 env: SPM: false LEGACY: false diff --git a/.github/workflows/analytics.yml b/.github/workflows/analytics.yml index ee7dbe5e7..d36444683 100644 --- a/.github/workflows/analytics.yml +++ b/.github/workflows/analytics.yml @@ -18,6 +18,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: SAMPLE: Analytics secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} @@ -25,18 +29,18 @@ env: 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 diff --git a/.github/workflows/authentication.yml b/.github/workflows/authentication.yml index c63034f35..b3e3de0da 100644 --- a/.github/workflows/authentication.yml +++ b/.github/workflows/authentication.yml @@ -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 }} diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4edf777ef..0f6b57019 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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: diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index 068a3fffb..d3a125496 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -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 }} diff --git a/.github/workflows/crashlytics.yml b/.github/workflows/crashlytics.yml index 55047f96a..ebe044d32 100644 --- a/.github/workflows/crashlytics.yml +++ b/.github/workflows/crashlytics.yml @@ -18,6 +18,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: SAMPLE: Crashlytics secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} @@ -25,7 +29,7 @@ env: jobs: cocoapods: name: cocoapods - runs-on: macOS-12 + runs-on: macOS-14 env: SPM: false LEGACY: true @@ -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 diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml index ea0954160..0d8b7341f 100644 --- a/.github/workflows/database.yml +++ b/.github/workflows/database.yml @@ -18,6 +18,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: SAMPLE: Database secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} @@ -25,7 +29,7 @@ env: jobs: cocoapods: name: cocoapods - runs-on: macOS-12 + runs-on: macOS-14 env: SPM: false LEGACY: false @@ -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 diff --git a/.github/workflows/dynamiclinks.yml b/.github/workflows/dynamiclinks.yml index e1ec6210c..d322640a3 100644 --- a/.github/workflows/dynamiclinks.yml +++ b/.github/workflows/dynamiclinks.yml @@ -18,6 +18,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: SAMPLE: DynamicLinks secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} @@ -25,7 +29,7 @@ env: jobs: cocoapods: name: cocoapods - runs-on: macOS-12 + runs-on: macOS-14 env: SPM: false LEGACY: false diff --git a/.github/workflows/firestore.yml b/.github/workflows/firestore.yml index a47f2a2e3..4e4ba683c 100644 --- a/.github/workflows/firestore.yml +++ b/.github/workflows/firestore.yml @@ -18,6 +18,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: SAMPLE: Firestore secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} @@ -25,7 +29,7 @@ env: jobs: cocoapods: name: cocoapods - runs-on: macOS-12 + runs-on: macOS-14 env: SPM: false LEGACY: false diff --git a/.github/workflows/functions.yml b/.github/workflows/functions.yml index 3bba73b18..026918edd 100644 --- a/.github/workflows/functions.yml +++ b/.github/workflows/functions.yml @@ -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: diff --git a/.github/workflows/inappmessaging.yml b/.github/workflows/inappmessaging.yml index 098c0fc59..105328e3a 100644 --- a/.github/workflows/inappmessaging.yml +++ b/.github/workflows/inappmessaging.yml @@ -18,6 +18,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: SAMPLE: InAppMessaging secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} @@ -25,7 +29,7 @@ env: jobs: cocoapods: name: cocoapods - runs-on: macOS-12 + runs-on: macOS-14 env: SPM: false LEGACY: false diff --git a/.github/workflows/installations.yml b/.github/workflows/installations.yml index ae0becfe5..38ecd645e 100644 --- a/.github/workflows/installations.yml +++ b/.github/workflows/installations.yml @@ -18,6 +18,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: SAMPLE: Installations secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} @@ -25,7 +29,7 @@ env: jobs: cocoapods: name: cocoapods - runs-on: macOS-12 + runs-on: macOS-14 env: SPM: false LEGACY: false diff --git a/.github/workflows/messaging.yml b/.github/workflows/messaging.yml index 2c58c3e23..fa39939d8 100644 --- a/.github/workflows/messaging.yml +++ b/.github/workflows/messaging.yml @@ -18,6 +18,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: SAMPLE: Messaging secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} @@ -25,7 +29,7 @@ env: jobs: cocoapods: name: cocoapods - runs-on: macOS-12 + runs-on: macOS-14 env: SPM: false LEGACY: false diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 212322bec..27d764dda 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -22,6 +22,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: SAMPLE: Performance secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} @@ -29,7 +33,7 @@ env: jobs: cocoapods: name: cocoapods - runs-on: macOS-12 + runs-on: macOS-14 env: SPM: false LEGACY: false @@ -57,18 +61,18 @@ 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] include: - os: iOS - device: iPhone 12 - test: true + device: iPhone 14 + test: false - os: tvOS - device: Apple TV 4K (at 1080p) (2nd generation) - test: true + device: Apple TV 4K (3rd generation) (at 1080p) + test: false env: SETUP: performance SPM: true diff --git a/.github/workflows/storage.yml b/.github/workflows/storage.yml index 62d7e1834..d849cf6a4 100644 --- a/.github/workflows/storage.yml +++ b/.github/workflows/storage.yml @@ -18,6 +18,10 @@ on: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: SAMPLE: Storage secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }} @@ -25,7 +29,7 @@ env: jobs: cocoapods: name: cocoapods - runs-on: macOS-12 + runs-on: macOS-14 env: SPM: false LEGACY: true @@ -55,16 +59,16 @@ jobs: 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: diff --git a/scripts/test.sh b/scripts/test.sh index 9159d5797..918e9713a 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -43,29 +43,6 @@ fi # Set have_secrets to true or false. source scripts/check_secrets.sh -# Get Xcode version -system=$(uname -s) -case "$system" in - Darwin) - xcode_version=$(xcodebuild -version | head -n 1) - xcode_version="${xcode_version/Xcode /}" - xcode_major="${xcode_version/.*/}" - ;; - *) - xcode_major="0" - ;; -esac - -# Check Xcode version when testing watchOS -if [[ "$TEST" == true && \ - "$OS" == watchOS && \ - "$xcode_major" -lt 13 && \ - "$xcode_version" != "12.5.1" && \ - "$xcode_version" != "12.5" ]]; then - echo "Xcode version does not yet supporting testing on watchOS" - exit 1 -fi - # Initialize flags flags=()