zip.yml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  1. name: zip
  2. on:
  3. pull_request:
  4. paths:
  5. - 'ReleaseTooling/Sources/**'
  6. - '.github/workflows/zip.yml'
  7. - 'scripts/build_non_firebase_sdks.sh'
  8. - 'scripts/build_zip.sh'
  9. - 'scripts/setup_quickstart_framework.sh'
  10. - 'Gemfile*'
  11. # Don't run based on any markdown only changes.
  12. - '!ReleaseTooling/*.md'
  13. schedule:
  14. # Run every day at 9pm (PDT) / 12am (EDT) - cron uses UTC times
  15. - cron: '0 4 * * *'
  16. workflow_dispatch:
  17. inputs:
  18. custom_spec_repos:
  19. description: 'Custom Podspec repos'
  20. required: true
  21. default: 'https://github.com/firebase/SpecsStaging.git'
  22. concurrency:
  23. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  24. cancel-in-progress: true
  25. jobs:
  26. package-release:
  27. # Don't run on private repo.
  28. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  29. runs-on: macos-14
  30. steps:
  31. - uses: actions/checkout@v4
  32. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  33. with:
  34. cache_key: package-release
  35. - name: Xcode 16.2
  36. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  37. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  38. - name: Setup Bundler
  39. run: ./scripts/setup_bundler.sh
  40. - name: ZipBuildingTest
  41. run: |
  42. mkdir -p release_zip_dir
  43. sh -x scripts/build_zip.sh release_zip_dir \
  44. "${{ github.event.inputs.custom_spec_repos || 'https://github.com/firebase/SpecsStaging.git' }}" \
  45. build-release \
  46. static
  47. - uses: actions/upload-artifact@v4
  48. with:
  49. name: Firebase-release-zip-zip
  50. # Zip the entire output directory since the builder adds subdirectories we don't know the
  51. # name of.
  52. path: release_zip_dir
  53. build:
  54. # Don't run on private repo unless it is a PR.
  55. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  56. runs-on: macos-14
  57. steps:
  58. - uses: actions/checkout@v4
  59. - name: Xcode 16.2
  60. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  61. - name: Build
  62. run: |
  63. cd ReleaseTooling
  64. swift build -v
  65. package-head:
  66. # Don't run on private repo.
  67. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  68. needs: build
  69. strategy:
  70. matrix:
  71. linking_type: [static, dynamic]
  72. runs-on: macos-14
  73. steps:
  74. - uses: actions/checkout@v4
  75. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  76. with:
  77. cache_key: package-head
  78. - name: Xcode 16.2
  79. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  80. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  81. - name: Setup Bundler
  82. run: ./scripts/setup_bundler.sh
  83. - name: ZipBuildingTest
  84. run: |
  85. mkdir -p zip_output_dir
  86. sh -x scripts/build_zip.sh \
  87. zip_output_dir "${{ github.event.inputs.custom_spec_repos || 'https://github.com/firebase/SpecsStaging.git,https://github.com/firebase/SpecsDev.git' }}" \
  88. build-head \
  89. ${{ matrix.linking_type }}
  90. - uses: actions/upload-artifact@v4
  91. if: ${{ always() }}
  92. with:
  93. name: ${{ matrix.linking_type == 'static' && 'Firebase-actions-dir' || 'Firebase-actions-dir-dynamic' }}
  94. # Zip the entire output directory since the builder adds subdirectories we don't know the
  95. # name of.
  96. path: zip_output_dir
  97. quickstart_framework_abtesting:
  98. # Don't run on private repo.
  99. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  100. needs: package-head
  101. env:
  102. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  103. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  104. SDK: "ABTesting"
  105. strategy:
  106. matrix:
  107. artifact: [Firebase-actions-dir, Firebase-actions-dir-dynamic]
  108. build-env:
  109. - os: macos-15
  110. xcode: Xcode_16.4
  111. runs-on: ${{ matrix.build-env.os }}
  112. steps:
  113. - uses: actions/checkout@v4
  114. - name: Get framework dir
  115. uses: actions/download-artifact@v4.1.7
  116. with:
  117. name: ${{ matrix.artifact }}
  118. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  119. - name: Xcode
  120. run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  121. - name: Setup Bundler
  122. run: ./scripts/setup_bundler.sh
  123. - name: Move frameworks
  124. run: |
  125. mkdir -p "${HOME}"/ios_frameworks/
  126. find "${GITHUB_WORKSPACE}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  127. - uses: actions/checkout@v4
  128. - name: Setup quickstart
  129. env:
  130. LEGACY: true
  131. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  132. "${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* \
  133. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/FirebaseCore.xcframework \
  134. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/FirebaseCoreInternal.xcframework \
  135. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/FBLPromises.xcframework \
  136. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/FirebaseInstallations.xcframework \
  137. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/GoogleUtilities.xcframework
  138. - name: Install Secret GoogleService-Info.plist
  139. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
  140. quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
  141. - name: Test Quickstart
  142. env:
  143. LEGACY: true
  144. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  145. - name: Remove data before upload
  146. env:
  147. LEGACY: true
  148. if: ${{ failure() }}
  149. run: scripts/remove_data.sh abtesting
  150. - uses: actions/upload-artifact@v4
  151. if: ${{ failure() }}
  152. with:
  153. name: quickstart_artifacts_abtesting
  154. path: quickstart-ios/
  155. quickstart_framework_auth:
  156. # Don't run on private repo.
  157. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  158. needs: package-head
  159. env:
  160. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  161. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  162. SDK: "Authentication"
  163. strategy:
  164. matrix:
  165. os: [macos-15]
  166. artifact: [Firebase-actions-dir, Firebase-actions-dir-dynamic]
  167. include:
  168. - os: macos-15
  169. xcode: Xcode_16.4
  170. runs-on: ${{ matrix.os }}
  171. steps:
  172. - uses: actions/checkout@v4
  173. - name: Get framework dir
  174. uses: actions/download-artifact@v4.1.7
  175. with:
  176. name: ${{ matrix.artifact }}
  177. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  178. - name: Xcode
  179. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  180. - name: Setup Bundler
  181. run: ./scripts/setup_bundler.sh
  182. - name: Move frameworks
  183. run: |
  184. mkdir -p "${HOME}"/ios_frameworks/
  185. find "${GITHUB_WORKSPACE}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  186. - name: Setup Swift Quickstart
  187. run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="FBSDKLoginKit FBSDKCoreKit FBSDKCoreKit_Basics FBAEMKit" scripts/setup_quickstart_framework.sh \
  188. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
  189. "${HOME}"/ios_frameworks/Firebase/GoogleSignIn/* \
  190. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  191. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  192. - name: Install Secret GoogleService-Info.plist
  193. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  194. quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  195. - name: Test Swift Quickstart
  196. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  197. - name: Remove data before upload
  198. if: ${{ failure() }}
  199. run: scripts/remove_data.sh authentiation
  200. - uses: actions/upload-artifact@v4
  201. if: ${{ failure() }}
  202. with:
  203. name: quickstart_artifacts_auth
  204. path: quickstart-ios/
  205. quickstart_framework_config:
  206. # Don't run on private repo.
  207. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  208. needs: package-head
  209. env:
  210. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  211. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  212. SDK: "Config"
  213. strategy:
  214. matrix:
  215. artifact: [Firebase-actions-dir, Firebase-actions-dir-dynamic]
  216. build-env:
  217. - os: macos-15
  218. xcode: Xcode_16.4
  219. runs-on: ${{ matrix.build-env.os }}
  220. steps:
  221. - uses: actions/checkout@v4
  222. - name: Get framework dir
  223. uses: actions/download-artifact@v4.1.7
  224. with:
  225. name: ${{ matrix.artifact }}
  226. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  227. - name: Xcode
  228. run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  229. - name: Setup Bundler
  230. run: ./scripts/setup_bundler.sh
  231. - name: Move frameworks
  232. run: |
  233. mkdir -p "${HOME}"/ios_frameworks/
  234. find "${GITHUB_WORKSPACE}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  235. - name: Setup Swift Quickstart
  236. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  237. "${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* \
  238. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  239. - name: Install Secret GoogleService-Info.plist
  240. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \
  241. quickstart-ios/config/GoogleService-Info.plist "$plist_secret"
  242. - name: Test Swift Quickstart
  243. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  244. - name: Remove data before upload
  245. if: ${{ failure() }}
  246. run: scripts/remove_data.sh config
  247. - uses: actions/upload-artifact@v4
  248. if: ${{ failure() }}
  249. with:
  250. name: quickstart_artifacts_config
  251. path: quickstart-ios/
  252. quickstart_framework_crashlytics:
  253. # Don't run on private repo.
  254. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  255. needs: package-head
  256. env:
  257. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  258. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  259. SDK: "Crashlytics"
  260. strategy:
  261. matrix:
  262. artifact: [Firebase-actions-dir, Firebase-actions-dir-dynamic]
  263. build-env:
  264. - os: macos-15
  265. xcode: Xcode_16.4
  266. runs-on: ${{ matrix.build-env.os }}
  267. steps:
  268. - uses: actions/checkout@v4
  269. - name: Get framework dir
  270. uses: actions/download-artifact@v4.1.7
  271. with:
  272. name: ${{ matrix.artifact }}
  273. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  274. - name: Xcode
  275. run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  276. - name: Setup Bundler
  277. run: ./scripts/setup_bundler.sh
  278. - name: Move frameworks
  279. run: |
  280. mkdir -p "${HOME}"/ios_frameworks/
  281. find "${GITHUB_WORKSPACE}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  282. - uses: actions/checkout@v4
  283. - name: Setup quickstart
  284. env:
  285. LEGACY: true
  286. run: |
  287. SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  288. "${HOME}"/ios_frameworks/Firebase/FirebaseCrashlytics/* \
  289. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  290. cp quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Firebase/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart
  291. cp quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Firebase/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart
  292. chmod +x quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/run
  293. chmod +x quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/upload-symbols
  294. # TODO(#8057): Restore Swift Quickstart
  295. # - name: Setup swift quickstart
  296. # env:
  297. # LEGACY: true
  298. # run: |
  299. # SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" NON_FIREBASE_SDKS="ReachabilitySwift" scripts/setup_quickstart_framework.sh \
  300. # "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/*
  301. - name: Install Secret GoogleService-Info.plist
  302. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  303. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  304. - name: Test Quickstart
  305. env:
  306. LEGACY: true
  307. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  308. # TODO(#8057): Restore Swift Quickstart
  309. # - name: Test Swift Quickstart
  310. # env:
  311. # LEGACY: true
  312. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  313. - name: Remove data before upload
  314. env:
  315. LEGACY: true
  316. if: ${{ failure() }}
  317. run: scripts/remove_data.sh crashlytics
  318. - uses: actions/upload-artifact@v4
  319. if: ${{ failure() }}
  320. with:
  321. name: quickstart_artifacts_crashlytics
  322. path: quickstart-ios/
  323. quickstart_framework_database:
  324. # Don't run on private repo.
  325. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  326. needs: package-head
  327. env:
  328. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  329. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  330. SDK: "Database"
  331. strategy:
  332. matrix:
  333. os: [macos-14]
  334. xcode: [Xcode_16.2]
  335. artifact: [Firebase-actions-dir, Firebase-actions-dir-dynamic]
  336. runs-on: ${{ matrix.os }}
  337. steps:
  338. - uses: actions/checkout@v4
  339. - name: Get framework dir
  340. uses: actions/download-artifact@v4.1.7
  341. with:
  342. name: ${{ matrix.artifact }}
  343. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  344. - name: Xcode
  345. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  346. - name: Setup Bundler
  347. run: ./scripts/setup_bundler.sh
  348. - name: Move frameworks
  349. run: |
  350. mkdir -p "${HOME}"/ios_frameworks/
  351. find "${GITHUB_WORKSPACE}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  352. - uses: actions/checkout@v4
  353. - name: Setup quickstart
  354. run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="FirebaseDatabaseUI" scripts/setup_quickstart_framework.sh \
  355. "${HOME}"/ios_frameworks/Firebase/FirebaseDatabase/* \
  356. "${HOME}"/ios_frameworks/Firebase/FirebaseStorage/* \
  357. "${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/* \
  358. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  359. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
  360. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  361. - name: Install Secret GoogleService-Info.plist
  362. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-database.plist.gpg \
  363. quickstart-ios/database/GoogleService-Info.plist "$plist_secret"
  364. - name: Test Quickstart
  365. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  366. - name: Remove data before upload
  367. if: ${{ failure() }}
  368. run: scripts/remove_data.sh database
  369. - uses: actions/upload-artifact@v4
  370. if: ${{ failure() }}
  371. with:
  372. name: quickstart_artifacts database
  373. path: quickstart-ios/
  374. quickstart_framework_firestore:
  375. # Don't run on private repo.
  376. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  377. needs: package-head
  378. env:
  379. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  380. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  381. SDK: "Firestore"
  382. strategy:
  383. matrix:
  384. artifact: [Firebase-actions-dir, Firebase-actions-dir-dynamic]
  385. build-env:
  386. - os: macos-15
  387. xcode: Xcode_16.4
  388. runs-on: ${{ matrix.build-env.os }}
  389. steps:
  390. - uses: actions/checkout@v4
  391. - name: Get framework dir
  392. uses: actions/download-artifact@v4.1.7
  393. with:
  394. name: ${{ matrix.artifact }}
  395. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  396. - name: Xcode
  397. run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  398. - name: Setup Bundler
  399. run: ./scripts/setup_bundler.sh
  400. - name: Move frameworks
  401. run: |
  402. mkdir -p "${HOME}"/ios_frameworks/
  403. find "${GITHUB_WORKSPACE}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  404. - uses: actions/checkout@v4
  405. - name: Setup quickstart
  406. run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="SDWebImage FirebaseAuthUI FirebaseEmailAuthUI" scripts/setup_quickstart_framework.sh \
  407. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
  408. "${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/* \
  409. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  410. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  411. - name: Upload build logs on failure
  412. if: ${{ failure() }}
  413. uses: actions/upload-artifact@v4
  414. with:
  415. name: build_logs_firestore_${{ matrix.artifact }}_${{ matrix.build-env.os }}
  416. path: sdk_zip/build_logs/
  417. - name: Install Secret GoogleService-Info.plist
  418. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-firestore.plist.gpg \
  419. quickstart-ios/firestore/GoogleService-Info.plist "$plist_secret"
  420. - name: Test Quickstart
  421. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  422. - name: Remove data before upload and zip directory to reduce upload size.
  423. if: ${{ failure() }}
  424. run: scripts/remove_data.sh firestore; zip -r --symlinks quickstart_artifacts_firestore.zip quickstart-ios/
  425. - uses: actions/upload-artifact@v4
  426. if: ${{ failure() }}
  427. with:
  428. name: quickstart_artifacts_firestore_${{ matrix.artifact }}_${{ matrix.build-env.os }}
  429. path: quickstart_artifacts_firestore.zip
  430. check_framework_firestore_symbols:
  431. # Don't run on private repo.
  432. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  433. needs: package-head
  434. env:
  435. FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
  436. runs-on: macos-14
  437. steps:
  438. - name: Xcode 16.2
  439. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  440. - uses: actions/checkout@v4
  441. - name: Get framework dir
  442. uses: actions/download-artifact@v4.1.7
  443. with:
  444. name: Firebase-actions-dir
  445. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  446. - name: Setup Bundler
  447. run: ./scripts/setup_bundler.sh
  448. - name: Install xcpretty
  449. run: gem install xcpretty
  450. - name: Move frameworks
  451. run: |
  452. mkdir -p "${HOME}"/ios_frameworks/
  453. find "${GITHUB_WORKSPACE}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  454. - uses: actions/checkout@v4
  455. - name: Check linked Firestore.xcframework for unlinked symbols.
  456. run: |
  457. scripts/check_firestore_symbols.sh \
  458. $(pwd) \
  459. "${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/FirebaseFirestoreInternal.xcframework
  460. quickstart_framework_inappmessaging:
  461. # Don't run on private repo.
  462. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  463. needs: package-head
  464. env:
  465. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  466. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  467. SDK: "InAppMessaging"
  468. strategy:
  469. matrix:
  470. artifact: [Firebase-actions-dir, Firebase-actions-dir-dynamic]
  471. build-env:
  472. - os: macos-15
  473. xcode: Xcode_16.4
  474. runs-on: ${{ matrix.build-env.os }}
  475. steps:
  476. - uses: actions/checkout@v4
  477. - name: Get framework dir
  478. uses: actions/download-artifact@v4.1.7
  479. with:
  480. name: ${{ matrix.artifact }}
  481. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  482. - name: Xcode
  483. run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  484. - name: Setup Bundler
  485. run: ./scripts/setup_bundler.sh
  486. - name: Move frameworks
  487. run: |
  488. mkdir -p "${HOME}"/ios_frameworks/
  489. find "${GITHUB_WORKSPACE}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  490. - uses: actions/checkout@v4
  491. - name: Setup quickstart
  492. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  493. "${HOME}"/ios_frameworks/Firebase/FirebaseInAppMessaging/* \
  494. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  495. - name: Setup swift quickstart
  496. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  497. - name: Install Secret GoogleService-Info.plist
  498. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
  499. quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
  500. - name: Test Quickstart
  501. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  502. - name: Test Swift Quickstart
  503. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  504. - name: Remove data before upload
  505. if: ${{ failure() }}
  506. run: scripts/remove_data.sh inappmessaging
  507. - uses: actions/upload-artifact@v4
  508. if: ${{ failure() }}
  509. with:
  510. name: quickstart_artifacts_inappmessaging
  511. path: quickstart-ios/
  512. quickstart_framework_messaging:
  513. # Don't run on private repo.
  514. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  515. needs: package-head
  516. env:
  517. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  518. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  519. SDK: "Messaging"
  520. strategy:
  521. matrix:
  522. artifact: [Firebase-actions-dir, Firebase-actions-dir-dynamic]
  523. build-env:
  524. - os: macos-15
  525. xcode: Xcode_16.4
  526. runs-on: ${{ matrix.build-env.os }}
  527. steps:
  528. - uses: actions/checkout@v4
  529. - name: Get framework dir
  530. uses: actions/download-artifact@v4.1.7
  531. with:
  532. name: ${{ matrix.artifact }}
  533. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  534. - name: Xcode
  535. run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  536. - name: Setup Bundler
  537. run: ./scripts/setup_bundler.sh
  538. - name: Move frameworks
  539. run: |
  540. mkdir -p "${HOME}"/ios_frameworks/
  541. find "${GITHUB_WORKSPACE}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  542. - uses: actions/checkout@v4
  543. - name: Setup quickstart
  544. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  545. "${HOME}"/ios_frameworks/Firebase/FirebaseMessaging/* \
  546. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  547. - name: Setup swift quickstart
  548. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  549. - name: Install Secret GoogleService-Info.plist
  550. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  551. quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  552. - name: Test Quickstart
  553. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  554. - name: Test Swift Quickstart
  555. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  556. - name: Remove data before upload
  557. if: ${{ failure() }}
  558. run: scripts/remove_data.sh messaging
  559. - uses: actions/upload-artifact@v4
  560. if: ${{ failure() }}
  561. with:
  562. name: quickstart_artifacts_messaging
  563. path: quickstart-ios/
  564. quickstart_framework_storage:
  565. # Don't run on private repo.
  566. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  567. needs: package-head
  568. env:
  569. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  570. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  571. SDK: "Storage"
  572. strategy:
  573. matrix:
  574. artifact: [Firebase-actions-dir, Firebase-actions-dir-dynamic]
  575. build-env:
  576. - os: macos-15
  577. xcode: Xcode_16.4
  578. runs-on: ${{ matrix.build-env.os }}
  579. steps:
  580. - uses: actions/checkout@v4
  581. - name: Get framework dir
  582. uses: actions/download-artifact@v4.1.7
  583. with:
  584. name: ${{ matrix.artifact }}
  585. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  586. - name: Xcode
  587. run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  588. - name: Setup Bundler
  589. run: ./scripts/setup_bundler.sh
  590. - name: Move frameworks
  591. run: |
  592. mkdir -p "${HOME}"/ios_frameworks/
  593. find "${GITHUB_WORKSPACE}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  594. - uses: actions/checkout@v4
  595. - name: Setup quickstart
  596. env:
  597. LEGACY: true
  598. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  599. "${HOME}"/ios_frameworks/Firebase/FirebaseStorage/* \
  600. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  601. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  602. - name: Setup swift quickstart
  603. env:
  604. LEGACY: true
  605. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  606. - name: Install Secret GoogleService-Info.plist
  607. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  608. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  609. - name: Test Quickstart
  610. env:
  611. LEGACY: true
  612. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  613. - name: Test Swift Quickstart
  614. env:
  615. LEGACY: true
  616. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  617. - name: Remove data before upload
  618. env:
  619. LEGACY: true
  620. if: ${{ failure() }}
  621. run: scripts/remove_data.sh storage
  622. - uses: actions/upload-artifact@v4
  623. if: ${{ failure() }}
  624. with:
  625. name: quickstart_artifacts_storage
  626. path: quickstart-ios/