zip.yml 31 KB

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