@@ -398,6 +398,57 @@ jobs:
398398 name : quickstart_artifacts database
399399 path : quickstart-ios/
400400
401+ quickstart_framework_firebaseai :
402+ needs : package-head
403+ if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
404+ env :
405+ plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
406+ SDK : " FirebaseAI"
407+ # This is a workaround to use the FirebaseAIExampleZip scheme that does not have the SPM dependency.
408+ SWIFT_SUFFIX : " Zip"
409+ strategy :
410+ matrix :
411+ artifact : [Firebase-actions-dir, Firebase-actions-dir-dynamic]
412+ build-env :
413+ - os : macos-15
414+ xcode : Xcode_16.4
415+ runs-on : ${{ matrix.build-env.os }}
416+ steps :
417+ - uses : actions/checkout@v4
418+ - name : Get framework dir
419+ 420+ with :
421+ name : ${{ matrix.artifact }}
422+ run-id : ${{ github.event.inputs.zip_run_id || github.run_id }}
423+ github-token : ${{ secrets.GITHUB_TOKEN }}
424+ - uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
425+ - name : Xcode
426+ run : sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
427+ - name : Setup Bundler
428+ run : ./scripts/setup_bundler.sh
429+ - name : Move frameworks
430+ run : |
431+ mkdir -p "${HOME}"/ios_frameworks/
432+ find "${GITHUB_WORKSPACE}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
433+ - uses : actions/checkout@v4
434+ - name : Setup quickstart
435+ run : SAMPLE="$SDK" TARGET="${SDK}ExampleZip" scripts/setup_quickstart_framework.sh \
436+ " ${HOME}" /ios_frameworks/Firebase/FirebaseAILogic/* \
437+ " ${HOME}" /ios_frameworks/Firebase/FirebaseAnalytics/*
438+ - name : Install Secret GoogleService-Info.plist
439+ run : scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FirebaseAI/TestApp-GoogleService-Info.plist.gpg \
440+ quickstart-ios/firebaseai/GoogleService-Info.plist "$plist_secret"
441+ - name : Test Quickstart
442+ run : ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
443+ - name : Remove data before upload
444+ if : ${{ failure() }}
445+ run : scripts/remove_data.sh firebaseai
446+ - uses : actions/upload-artifact@v4
447+ if : ${{ failure() }}
448+ with :
449+ name : quickstart_artifacts_firebaseai
450+ path : quickstart-ios/
451+
401452 quickstart_framework_firestore :
402453 needs : package-head
403454 if : ${{ !cancelled() && (success() || github.event.inputs.zip_run_id != '') }}
@@ -577,6 +628,10 @@ jobs:
577628 " ${HOME}" /ios_frameworks/Firebase/FirebaseAnalytics/*
578629 - name : Setup swift quickstart
579630 run : SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
631+ - name : Add frameworks to Crashlytics watchOS target
632+ run : |
633+ cd quickstart-ios/messaging
634+ "${GITHUB_WORKSPACE}"/quickstart-ios/scripts/add_framework_script.rb --sdk Messaging --target NotificationServiceExtension --framework_path Firebase/
580635 - name : Install Secret GoogleService-Info.plist
581636 run : scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
582637 quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
0 commit comments