zip.yml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  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-12
  28. steps:
  29. - uses: actions/checkout@v3
  30. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  31. with:
  32. cache_key: ${{ matrix.os }}
  33. - name: Xcode 14.1
  34. run: sudo xcode-select -s /Applications/Xcode_14.1.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@v1
  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-12
  53. steps:
  54. - uses: actions/checkout@v3
  55. - name: Xcode 14.1
  56. run: sudo xcode-select -s /Applications/Xcode_14.1.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-12
  66. steps:
  67. - uses: actions/checkout@v3
  68. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  69. with:
  70. cache_key: ${{ matrix.os }}
  71. - name: Xcode 14.1
  72. run: sudo xcode-select -s /Applications/Xcode_14.1.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@v1
  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. FRAMEWORK_DIR: "Firebase-actions-dir"
  96. SDK: "ABTesting"
  97. runs-on: macos-12
  98. steps:
  99. - uses: actions/checkout@v3
  100. - name: Get framework dir
  101. uses: actions/download-artifact@v1
  102. with:
  103. name: Firebase-actions-dir
  104. - uses: ruby/setup-ruby@v1
  105. - name: Setup Bundler
  106. run: ./scripts/setup_bundler.sh
  107. - name: Move frameworks
  108. run: |
  109. mkdir -p "${HOME}"/ios_frameworks/
  110. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  111. - uses: actions/checkout@v3
  112. - name: Setup quickstart
  113. env:
  114. LEGACY: true
  115. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  116. "${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* \
  117. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/FirebaseCore.xcframework \
  118. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/FirebaseCoreInternal.xcframework \
  119. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/FBLPromises.xcframework \
  120. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/FirebaseInstallations.xcframework \
  121. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/GoogleUtilities.xcframework
  122. - name: Install Secret GoogleService-Info.plist
  123. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
  124. quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
  125. - name: Test Quickstart
  126. env:
  127. LEGACY: true
  128. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  129. - name: Remove data before upload
  130. env:
  131. LEGACY: true
  132. if: ${{ failure() }}
  133. run: scripts/remove_data.sh abtesting
  134. - uses: actions/upload-artifact@v2
  135. if: ${{ failure() }}
  136. with:
  137. name: quickstart_artifacts_abtesting
  138. path: quickstart-ios/
  139. quickstart_framework_auth:
  140. # Don't run on private repo.
  141. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  142. needs: package-head
  143. env:
  144. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  145. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  146. FRAMEWORK_DIR: "Firebase-actions-dir"
  147. SDK: "Authentication"
  148. runs-on: macos-12
  149. steps:
  150. - uses: actions/checkout@v3
  151. - name: Get framework dir
  152. uses: actions/download-artifact@v1
  153. with:
  154. name: Firebase-actions-dir
  155. - uses: ruby/setup-ruby@v1
  156. - name: Setup Bundler
  157. run: ./scripts/setup_bundler.sh
  158. - name: Move frameworks
  159. run: |
  160. mkdir -p "${HOME}"/ios_frameworks/
  161. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  162. - name: Setup Swift Quickstart
  163. run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="FBSDKLoginKit FBSDKCoreKit FBSDKCoreKit_Basics FBAEMKit" scripts/setup_quickstart_framework.sh \
  164. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
  165. "${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \
  166. "${HOME}"/ios_frameworks/Firebase/GoogleSignIn/* \
  167. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  168. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  169. - name: Install Secret GoogleService-Info.plist
  170. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  171. quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  172. - name: Test Swift Quickstart
  173. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  174. - name: Remove data before upload
  175. if: ${{ failure() }}
  176. run: scripts/remove_data.sh authentiation
  177. - uses: actions/upload-artifact@v2
  178. if: ${{ failure() }}
  179. with:
  180. name: quickstart_artifacts_auth
  181. path: quickstart-ios/
  182. quickstart_framework_config:
  183. # Don't run on private repo.
  184. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  185. needs: package-head
  186. env:
  187. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  188. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  189. FRAMEWORK_DIR: "Firebase-actions-dir"
  190. SDK: "Config"
  191. runs-on: macos-12
  192. steps:
  193. - uses: actions/checkout@v3
  194. - name: Get framework dir
  195. uses: actions/download-artifact@v1
  196. with:
  197. name: Firebase-actions-dir
  198. - uses: ruby/setup-ruby@v1
  199. - name: Setup Bundler
  200. run: ./scripts/setup_bundler.sh
  201. - name: Move frameworks
  202. run: |
  203. mkdir -p "${HOME}"/ios_frameworks/
  204. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  205. - name: Setup Swift Quickstart
  206. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  207. "${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* \
  208. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  209. - name: Install Secret GoogleService-Info.plist
  210. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \
  211. quickstart-ios/config/GoogleService-Info.plist "$plist_secret"
  212. - name: Test Swift Quickstart
  213. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  214. - name: Remove data before upload
  215. if: ${{ failure() }}
  216. run: scripts/remove_data.sh config
  217. - uses: actions/upload-artifact@v2
  218. if: ${{ failure() }}
  219. with:
  220. name: quickstart_artifacts_config
  221. path: quickstart-ios/
  222. quickstart_framework_crashlytics:
  223. # Don't run on private repo.
  224. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  225. needs: package-head
  226. env:
  227. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  228. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  229. FRAMEWORK_DIR: "Firebase-actions-dir"
  230. SDK: "Crashlytics"
  231. runs-on: macos-12
  232. steps:
  233. - uses: actions/checkout@v3
  234. - name: Get framework dir
  235. uses: actions/download-artifact@v1
  236. with:
  237. name: Firebase-actions-dir
  238. - uses: ruby/setup-ruby@v1
  239. - name: Setup Bundler
  240. run: ./scripts/setup_bundler.sh
  241. - name: Move frameworks
  242. run: |
  243. mkdir -p "${HOME}"/ios_frameworks/
  244. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  245. - uses: actions/checkout@v3
  246. - name: Setup quickstart
  247. env:
  248. LEGACY: true
  249. run: |
  250. SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  251. "${HOME}"/ios_frameworks/Firebase/FirebaseCrashlytics/* \
  252. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  253. cp quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Firebase/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart
  254. cp quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Firebase/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart
  255. chmod +x quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/run
  256. chmod +x quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/upload-symbols
  257. # TODO(#8057): Restore Swift Quickstart
  258. # - name: Setup swift quickstart
  259. # env:
  260. # LEGACY: true
  261. # run: |
  262. # SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" NON_FIREBASE_SDKS="ReachabilitySwift" scripts/setup_quickstart_framework.sh \
  263. # "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/*
  264. - name: Install Secret GoogleService-Info.plist
  265. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  266. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  267. - name: Test Quickstart
  268. env:
  269. LEGACY: true
  270. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  271. # TODO(#8057): Restore Swift Quickstart
  272. # - name: Test Swift Quickstart
  273. # env:
  274. # LEGACY: true
  275. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  276. - name: Remove data before upload
  277. env:
  278. LEGACY: true
  279. if: ${{ failure() }}
  280. run: scripts/remove_data.sh crashlytics
  281. - uses: actions/upload-artifact@v2
  282. if: ${{ failure() }}
  283. with:
  284. name: quickstart_artifacts_crashlytics
  285. path: quickstart-ios/
  286. quickstart_framework_database:
  287. # Don't run on private repo.
  288. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  289. needs: package-head
  290. env:
  291. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  292. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  293. FRAMEWORK_DIR: "Firebase-actions-dir"
  294. SDK: "Database"
  295. runs-on: macos-12
  296. steps:
  297. - uses: actions/checkout@v3
  298. - name: Get framework dir
  299. uses: actions/download-artifact@v1
  300. with:
  301. name: Firebase-actions-dir
  302. - uses: ruby/setup-ruby@v1
  303. - name: Setup Bundler
  304. run: ./scripts/setup_bundler.sh
  305. - name: Move frameworks
  306. run: |
  307. mkdir -p "${HOME}"/ios_frameworks/
  308. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  309. - uses: actions/checkout@v3
  310. - name: Setup quickstart
  311. run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="FirebaseDatabaseUI" scripts/setup_quickstart_framework.sh \
  312. "${HOME}"/ios_frameworks/Firebase/FirebaseDatabase/* \
  313. "${HOME}"/ios_frameworks/Firebase/FirebaseStorage/* \
  314. "${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/* \
  315. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  316. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
  317. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  318. - name: Install Secret GoogleService-Info.plist
  319. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-database.plist.gpg \
  320. quickstart-ios/database/GoogleService-Info.plist "$plist_secret"
  321. - name: Test Quickstart
  322. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  323. - name: Remove data before upload
  324. if: ${{ failure() }}
  325. run: scripts/remove_data.sh database
  326. - uses: actions/upload-artifact@v2
  327. if: ${{ failure() }}
  328. with:
  329. name: quickstart_artifacts database
  330. path: quickstart-ios/
  331. quickstart_framework_dynamiclinks:
  332. # Don't run on private repo.
  333. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  334. needs: package-head
  335. env:
  336. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  337. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  338. FRAMEWORK_DIR: "Firebase-actions-dir"
  339. SDK: "DynamicLinks"
  340. runs-on: macos-12
  341. steps:
  342. - uses: actions/checkout@v3
  343. - name: Get framework dir
  344. uses: actions/download-artifact@v1
  345. with:
  346. name: Firebase-actions-dir
  347. - uses: ruby/setup-ruby@v1
  348. - name: Setup Bundler
  349. run: ./scripts/setup_bundler.sh
  350. - name: Move frameworks
  351. run: |
  352. mkdir -p "${HOME}"/ios_frameworks/
  353. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  354. - name: Setup Objc Quickstart
  355. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  356. "${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \
  357. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  358. - name: Setup Swift Quickstart
  359. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  360. - name: Update Environment Variable For DynamicLinks
  361. run: |
  362. sed -i '' 's#DYNAMIC_LINK_DOMAIN#https://qpf6m.app.goo.gl#' quickstart-ios/dynamiclinks/DynamicLinksExample/DynamicLinksExample.entitlements
  363. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExample/ViewController.m
  364. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExampleSwift/ViewController.swift
  365. - name: Install Secret GoogleService-Info.plist
  366. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-dynamiclinks.plist.gpg \
  367. quickstart-ios/dynamiclinks/GoogleService-Info.plist "$plist_secret"
  368. - name: Test Objc Quickstart
  369. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  370. - name: Test Swift Quickstart
  371. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  372. - name: Remove data before upload
  373. if: ${{ failure() }}
  374. run: scripts/remove_data.sh dynamiclinks
  375. - uses: actions/upload-artifact@v2
  376. if: ${{ failure() }}
  377. with:
  378. name: quickstart_artifacts_dynamiclinks
  379. path: quickstart-ios/
  380. quickstart_framework_firestore:
  381. # Don't run on private repo.
  382. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  383. needs: package-head
  384. env:
  385. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  386. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  387. FRAMEWORK_DIR: "Firebase-actions-dir"
  388. SDK: "Firestore"
  389. runs-on: macos-12
  390. steps:
  391. - uses: actions/checkout@v3
  392. - name: Get framework dir
  393. uses: actions/download-artifact@v1
  394. with:
  395. name: Firebase-actions-dir
  396. - uses: ruby/setup-ruby@v1
  397. - name: Setup Bundler
  398. run: ./scripts/setup_bundler.sh
  399. - name: Move frameworks
  400. run: |
  401. mkdir -p "${HOME}"/ios_frameworks/
  402. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  403. - uses: actions/checkout@v3
  404. - name: Setup quickstart
  405. run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="SDWebImage FirebaseAuthUI FirebaseEmailAuthUI" scripts/setup_quickstart_framework.sh \
  406. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
  407. "${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/* \
  408. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  409. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  410. - name: Install Secret GoogleService-Info.plist
  411. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-firestore.plist.gpg \
  412. quickstart-ios/firestore/GoogleService-Info.plist "$plist_secret"
  413. - name: Test Quickstart
  414. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  415. - name: Remove data before upload
  416. if: ${{ failure() }}
  417. run: scripts/remove_data.sh firestore
  418. - uses: actions/upload-artifact@v2
  419. if: ${{ failure() }}
  420. with:
  421. name: quickstart_artifacts_firestore
  422. path: quickstart-ios/
  423. check_framework_firestore_symbols:
  424. # Don't run on private repo.
  425. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  426. needs: package-head
  427. env:
  428. FRAMEWORK_DIR: "Firebase-actions-dir"
  429. FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
  430. runs-on: macos-12
  431. steps:
  432. - name: Xcode 14.1
  433. run: sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer
  434. - uses: actions/checkout@v3
  435. - name: Get framework dir
  436. uses: actions/download-artifact@v1
  437. with:
  438. name: Firebase-actions-dir
  439. - uses: ruby/setup-ruby@v1
  440. - name: Setup Bundler
  441. run: ./scripts/setup_bundler.sh
  442. - name: Install xcpretty
  443. run: gem install xcpretty
  444. - name: Move frameworks
  445. run: |
  446. mkdir -p "${HOME}"/ios_frameworks/
  447. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  448. - uses: actions/checkout@v3
  449. - name: Check linked Firestore.xcframework for unlinked symbols.
  450. run: |
  451. scripts/check_firestore_symbols.sh \
  452. $(pwd) \
  453. "${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/FirebaseFirestore.xcframework
  454. quickstart_framework_inappmessaging:
  455. # Don't run on private repo.
  456. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  457. needs: package-head
  458. env:
  459. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  460. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  461. FRAMEWORK_DIR: "Firebase-actions-dir"
  462. SDK: "InAppMessaging"
  463. runs-on: macos-12
  464. steps:
  465. - uses: actions/checkout@v3
  466. - name: Get framework dir
  467. uses: actions/download-artifact@v1
  468. with:
  469. name: Firebase-actions-dir
  470. - uses: ruby/setup-ruby@v1
  471. - name: Setup Bundler
  472. run: ./scripts/setup_bundler.sh
  473. - name: Move frameworks
  474. run: |
  475. mkdir -p "${HOME}"/ios_frameworks/
  476. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  477. - uses: actions/checkout@v3
  478. - name: Setup quickstart
  479. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  480. "${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \
  481. "${HOME}"/ios_frameworks/Firebase/FirebaseInAppMessaging/* \
  482. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  483. - name: Setup swift quickstart
  484. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  485. - name: Install Secret GoogleService-Info.plist
  486. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
  487. quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
  488. - name: Test Quickstart
  489. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  490. - name: Test Swift Quickstart
  491. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  492. - name: Remove data before upload
  493. if: ${{ failure() }}
  494. run: scripts/remove_data.sh inappmessaging
  495. - uses: actions/upload-artifact@v2
  496. if: ${{ failure() }}
  497. with:
  498. name: quickstart_artifacts_ihappmessaging
  499. path: quickstart-ios/
  500. quickstart_framework_messaging:
  501. # Don't run on private repo.
  502. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  503. needs: package-head
  504. env:
  505. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  506. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  507. FRAMEWORK_DIR: "Firebase-actions-dir"
  508. SDK: "Messaging"
  509. runs-on: macos-12
  510. steps:
  511. - uses: actions/checkout@v3
  512. - name: Get framework dir
  513. uses: actions/download-artifact@v1
  514. with:
  515. name: Firebase-actions-dir
  516. - uses: ruby/setup-ruby@v1
  517. - name: Setup Bundler
  518. run: ./scripts/setup_bundler.sh
  519. - name: Move frameworks
  520. run: |
  521. mkdir -p "${HOME}"/ios_frameworks/
  522. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  523. - uses: actions/checkout@v3
  524. - name: Setup quickstart
  525. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  526. "${HOME}"/ios_frameworks/Firebase/FirebaseMessaging/* \
  527. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  528. - name: Setup swift quickstart
  529. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  530. - name: Install Secret GoogleService-Info.plist
  531. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  532. quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  533. - name: Test Quickstart
  534. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  535. - name: Test Swift Quickstart
  536. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  537. - name: Remove data before upload
  538. if: ${{ failure() }}
  539. run: scripts/remove_data.sh messaging
  540. - uses: actions/upload-artifact@v2
  541. if: ${{ failure() }}
  542. with:
  543. name: quickstart_artifacts_messaging
  544. path: quickstart-ios/
  545. quickstart_framework_storage:
  546. # Don't run on private repo.
  547. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  548. needs: package-head
  549. env:
  550. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  551. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  552. FRAMEWORK_DIR: "Firebase-actions-dir"
  553. SDK: "Storage"
  554. runs-on: macos-12
  555. steps:
  556. - uses: actions/checkout@v3
  557. - name: Get framework dir
  558. uses: actions/download-artifact@v1
  559. with:
  560. name: Firebase-actions-dir
  561. - uses: ruby/setup-ruby@v1
  562. - name: Setup Bundler
  563. run: ./scripts/setup_bundler.sh
  564. - name: Move frameworks
  565. run: |
  566. mkdir -p "${HOME}"/ios_frameworks/
  567. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  568. - uses: actions/checkout@v3
  569. - name: Setup quickstart
  570. env:
  571. LEGACY: true
  572. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  573. "${HOME}"/ios_frameworks/Firebase/FirebaseStorage/* \
  574. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  575. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  576. - name: Setup swift quickstart
  577. env:
  578. LEGACY: true
  579. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  580. - name: Install Secret GoogleService-Info.plist
  581. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  582. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  583. - name: Test Quickstart
  584. env:
  585. LEGACY: true
  586. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  587. - name: Test Swift Quickstart
  588. env:
  589. LEGACY: true
  590. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  591. - name: Remove data before upload
  592. env:
  593. LEGACY: true
  594. if: ${{ failure() }}
  595. run: scripts/remove_data.sh storage
  596. - uses: actions/upload-artifact@v2
  597. if: ${{ failure() }}
  598. with:
  599. name: quickstart_artifacts_storage
  600. path: quickstart-ios/