zip.yml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  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 midnight(PST) - cron uses UTC times
  13. - cron: '0 8 * * *'
  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. jobs:
  21. package-release:
  22. # Don't run on private repo.
  23. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  24. runs-on: macOS-10.15
  25. steps:
  26. - uses: actions/checkout@v2
  27. - name: Xcode 12.2
  28. run: sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer
  29. - name: Setup Bundler
  30. run: ./scripts/setup_bundler.sh
  31. - name: ZipBuildingTest
  32. run: |
  33. mkdir -p release_zip_dir
  34. sh -x scripts/build_zip.sh release_zip_dir \
  35. "${{ github.event.inputs.custom_spec_repos || 'https://github.com/firebase/SpecsStaging.git' }}"
  36. - uses: actions/upload-artifact@v1
  37. with:
  38. name: Firebase-release-zip-zip
  39. # Zip the entire output directory since the builder adds subdirectories we don't know the
  40. # name of.
  41. path: release_zip_dir
  42. build:
  43. # Don't run on private repo unless it is a PR.
  44. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  45. runs-on: macOS-10.15
  46. steps:
  47. - uses: actions/checkout@v2
  48. - name: Xcode 12.2
  49. run: sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer
  50. - name: Build
  51. run: |
  52. cd ReleaseTooling
  53. swift build -v
  54. package-head:
  55. # Don't run on private repo.
  56. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  57. needs: build
  58. runs-on: macOS-10.15
  59. steps:
  60. - uses: actions/checkout@v2
  61. - name: Xcode 12.2
  62. run: sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer
  63. - name: Setup Bundler
  64. run: ./scripts/setup_bundler.sh
  65. - name: ZipBuildingTest
  66. run: |
  67. mkdir -p zip_output_dir
  68. sh -x scripts/build_zip.sh \
  69. zip_output_dir "${{ github.event.inputs.custom_spec_repos || 'https://github.com/firebase/SpecsStaging.git,https://github.com/firebase/SpecsDev.git' }}" \
  70. build-head
  71. - uses: actions/upload-artifact@v1
  72. with:
  73. name: Firebase-actions-dir
  74. # Zip the entire output directory since the builder adds subdirectories we don't know the
  75. # name of.
  76. path: zip_output_dir
  77. quickstart_framework_abtesting:
  78. # Don't run on private repo.
  79. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  80. needs: package-head
  81. env:
  82. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  83. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  84. FRAMEWORK_DIR: "Firebase-actions-dir"
  85. SDK: "ABTesting"
  86. runs-on: macOS-10.15
  87. steps:
  88. - uses: actions/checkout@v2
  89. - name: Get framework dir
  90. uses: actions/download-artifact@v1
  91. with:
  92. name: Firebase-actions-dir
  93. - name: Move frameworks
  94. run: |
  95. mkdir -p "${HOME}"/ios_frameworks/
  96. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  97. - name: Setup quickstart
  98. env:
  99. LEGACY: true
  100. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  101. "${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* \
  102. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/FirebaseCore.xcframework \
  103. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/PromisesObjC.xcframework \
  104. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/FirebaseInstallations.xcframework \
  105. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/GoogleUtilities.xcframework
  106. - name: Install Secret GoogleService-Info.plist
  107. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
  108. quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
  109. - name: Test Quickstart
  110. env:
  111. LEGACY: true
  112. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  113. - name: Remove data before upload
  114. env:
  115. LEGACY: true
  116. if: ${{ failure() }}
  117. run: scripts/remove_data.sh abtesting
  118. - uses: actions/upload-artifact@v2
  119. if: ${{ failure() }}
  120. with:
  121. name: quickstart_artifacts_abtesting
  122. path: quickstart-ios/
  123. quickstart_framework_auth:
  124. # Don't run on private repo.
  125. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  126. needs: package-head
  127. env:
  128. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  129. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  130. FRAMEWORK_DIR: "Firebase-actions-dir"
  131. SDK: "Authentication"
  132. runs-on: macOS-10.15
  133. steps:
  134. - uses: actions/checkout@v2
  135. - name: Get framework dir
  136. uses: actions/download-artifact@v1
  137. with:
  138. name: Firebase-actions-dir
  139. - name: Move frameworks
  140. run: |
  141. mkdir -p "${HOME}"/ios_frameworks/
  142. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  143. - name: Setup Swift Quickstart
  144. run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="FBSDKLoginKit FBSDKCoreKit FBSDKCoreKit_Basics FBAEMKit" scripts/setup_quickstart_framework.sh \
  145. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
  146. "${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \
  147. "${HOME}"/ios_frameworks/Firebase/GoogleSignIn/* \
  148. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  149. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  150. - name: Install Secret GoogleService-Info.plist
  151. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  152. quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  153. - name: Test Swift Quickstart
  154. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  155. - name: Remove data before upload
  156. if: ${{ failure() }}
  157. run: scripts/remove_data.sh authentiation
  158. - uses: actions/upload-artifact@v2
  159. if: ${{ failure() }}
  160. with:
  161. name: quickstart_artifacts_auth
  162. path: quickstart-ios/
  163. quickstart_framework_config:
  164. # Don't run on private repo.
  165. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  166. needs: package-head
  167. env:
  168. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  169. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  170. FRAMEWORK_DIR: "Firebase-actions-dir"
  171. SDK: "Config"
  172. runs-on: macOS-10.15
  173. steps:
  174. - uses: actions/checkout@v2
  175. - name: Get framework dir
  176. uses: actions/download-artifact@v1
  177. with:
  178. name: Firebase-actions-dir
  179. - name: Move frameworks
  180. run: |
  181. mkdir -p "${HOME}"/ios_frameworks/
  182. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  183. - name: Setup Swift Quickstart
  184. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  185. "${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* \
  186. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  187. - name: Install Secret GoogleService-Info.plist
  188. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \
  189. quickstart-ios/config/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 config
  195. - uses: actions/upload-artifact@v2
  196. if: ${{ failure() }}
  197. with:
  198. name: quickstart_artifacts_config
  199. path: quickstart-ios/
  200. quickstart_framework_crashlytics:
  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. FRAMEWORK_DIR: "Firebase-actions-dir"
  208. SDK: "Crashlytics"
  209. runs-on: macOS-10.15
  210. steps:
  211. - uses: actions/checkout@v2
  212. - name: Get framework dir
  213. uses: actions/download-artifact@v1
  214. with:
  215. name: Firebase-actions-dir
  216. - name: Move frameworks
  217. run: |
  218. mkdir -p "${HOME}"/ios_frameworks/
  219. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  220. - name: Setup quickstart
  221. env:
  222. LEGACY: true
  223. run: |
  224. SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  225. "${HOME}"/ios_frameworks/Firebase/FirebaseCrashlytics/* \
  226. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  227. cp quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Firebase/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart
  228. cp quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Firebase/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart
  229. chmod +x quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/run
  230. chmod +x quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/upload-symbols
  231. # TODO(#8057): Restore Swift Quickstart
  232. # - name: Setup swift quickstart
  233. # run: |
  234. # SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" NON_FIREBASE_SDKS="ReachabilitySwift" scripts/setup_quickstart_framework.sh \
  235. # "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/*
  236. - name: Install Secret GoogleService-Info.plist
  237. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  238. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  239. - name: Test Quickstart
  240. env:
  241. LEGACY: true
  242. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  243. # - name: Test Swift Quickstart
  244. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  245. - name: Remove data before upload
  246. env:
  247. LEGACY: true
  248. if: ${{ failure() }}
  249. run: scripts/remove_data.sh crashlytics
  250. - uses: actions/upload-artifact@v2
  251. if: ${{ failure() }}
  252. with:
  253. name: quickstart_artifacts_crashlytics
  254. path: quickstart-ios/
  255. quickstart_framework_database:
  256. # Don't run on private repo.
  257. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  258. needs: package-head
  259. env:
  260. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  261. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  262. FRAMEWORK_DIR: "Firebase-actions-dir"
  263. SDK: "Database"
  264. runs-on: macOS-10.15
  265. steps:
  266. - uses: actions/checkout@v2
  267. - name: Get framework dir
  268. uses: actions/download-artifact@v1
  269. with:
  270. name: Firebase-actions-dir
  271. - name: Move frameworks
  272. run: |
  273. mkdir -p "${HOME}"/ios_frameworks/
  274. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  275. - name: Setup quickstart
  276. run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="FirebaseDatabaseUI" scripts/setup_quickstart_framework.sh \
  277. "${HOME}"/ios_frameworks/Firebase/FirebaseDatabase/* \
  278. "${HOME}"/ios_frameworks/Firebase/FirebaseStorage/* \
  279. "${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/* \
  280. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  281. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
  282. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  283. - name: Install Secret GoogleService-Info.plist
  284. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-database.plist.gpg \
  285. quickstart-ios/database/GoogleService-Info.plist "$plist_secret"
  286. - name: Test Quickstart
  287. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  288. - name: Remove data before upload
  289. if: ${{ failure() }}
  290. run: scripts/remove_data.sh database
  291. - uses: actions/upload-artifact@v2
  292. if: ${{ failure() }}
  293. with:
  294. name: quickstart_artifacts database
  295. path: quickstart-ios/
  296. quickstart_framework_dynamiclinks:
  297. # Don't run on private repo.
  298. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  299. needs: package-head
  300. env:
  301. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  302. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  303. FRAMEWORK_DIR: "Firebase-actions-dir"
  304. SDK: "DynamicLinks"
  305. runs-on: macOS-10.15
  306. steps:
  307. - uses: actions/checkout@v2
  308. - name: Get framework dir
  309. uses: actions/download-artifact@v1
  310. with:
  311. name: Firebase-actions-dir
  312. - name: Move frameworks
  313. run: |
  314. mkdir -p "${HOME}"/ios_frameworks/
  315. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  316. - name: Setup Objc Quickstart
  317. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  318. "${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \
  319. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  320. - name: Setup Swift Quickstart
  321. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  322. - name: Update Environment Variable For DynamicLinks
  323. run: |
  324. sed -i '' 's#DYNAMIC_LINK_DOMAIN#https://qpf6m.app.goo.gl#' quickstart-ios/dynamiclinks/DynamicLinksExample/DynamicLinksExample.entitlements
  325. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExample/ViewController.m
  326. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExampleSwift/ViewController.swift
  327. - name: Install Secret GoogleService-Info.plist
  328. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-dynamiclinks.plist.gpg \
  329. quickstart-ios/dynamiclinks/GoogleService-Info.plist "$plist_secret"
  330. - name: Test Objc Quickstart
  331. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  332. - name: Test Swift Quickstart
  333. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  334. - name: Remove data before upload
  335. if: ${{ failure() }}
  336. run: scripts/remove_data.sh dynamiclinks
  337. - uses: actions/upload-artifact@v2
  338. if: ${{ failure() }}
  339. with:
  340. name: quickstart_artifacts_dynamiclinks
  341. path: quickstart-ios/
  342. quickstart_framework_firestore:
  343. # Don't run on private repo.
  344. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  345. needs: package-head
  346. env:
  347. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  348. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  349. FRAMEWORK_DIR: "Firebase-actions-dir"
  350. SDK: "Firestore"
  351. runs-on: macOS-10.15
  352. steps:
  353. - uses: actions/checkout@v2
  354. - name: Get framework dir
  355. uses: actions/download-artifact@v1
  356. with:
  357. name: Firebase-actions-dir
  358. - name: Move frameworks
  359. run: |
  360. mkdir -p "${HOME}"/ios_frameworks/
  361. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  362. - name: Setup quickstart
  363. run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="SDWebImage FirebaseAuthUI FirebaseEmailAuthUI FirebaseFirestoreSwift" scripts/setup_quickstart_framework.sh \
  364. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
  365. "${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/* \
  366. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  367. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  368. - name: Install Secret GoogleService-Info.plist
  369. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-firestore.plist.gpg \
  370. quickstart-ios/firestore/GoogleService-Info.plist "$plist_secret"
  371. - name: Test Quickstart
  372. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  373. - name: Remove data before upload
  374. if: ${{ failure() }}
  375. run: scripts/remove_data.sh firestore
  376. - uses: actions/upload-artifact@v2
  377. if: ${{ failure() }}
  378. with:
  379. name: quickstart_artifacts_firestore
  380. path: quickstart-ios/
  381. quickstart_framework_inappmessaging:
  382. # Don't run on private repo.
  383. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  384. needs: package-head
  385. env:
  386. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  387. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  388. FRAMEWORK_DIR: "Firebase-actions-dir"
  389. SDK: "InAppMessaging"
  390. runs-on: macOS-10.15
  391. steps:
  392. - uses: actions/checkout@v2
  393. - name: Get framework dir
  394. uses: actions/download-artifact@v1
  395. with:
  396. name: Firebase-actions-dir
  397. - name: Move frameworks
  398. run: |
  399. mkdir -p "${HOME}"/ios_frameworks/
  400. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  401. - name: Setup quickstart
  402. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  403. "${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \
  404. "${HOME}"/ios_frameworks/Firebase/FirebaseInAppMessaging/* \
  405. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  406. - name: Setup swift quickstart
  407. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  408. - name: Install Secret GoogleService-Info.plist
  409. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
  410. quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
  411. - name: Test Quickstart
  412. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  413. - name: Test Swift Quickstart
  414. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  415. - name: Remove data before upload
  416. if: ${{ failure() }}
  417. run: scripts/remove_data.sh inappmessaging
  418. - uses: actions/upload-artifact@v2
  419. if: ${{ failure() }}
  420. with:
  421. name: quickstart_artifacts_ihappmessaging
  422. path: quickstart-ios/
  423. quickstart_framework_messaging:
  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. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  429. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  430. FRAMEWORK_DIR: "Firebase-actions-dir"
  431. SDK: "Messaging"
  432. runs-on: macOS-10.15
  433. steps:
  434. - uses: actions/checkout@v2
  435. - name: Get framework dir
  436. uses: actions/download-artifact@v1
  437. with:
  438. name: Firebase-actions-dir
  439. - name: Move frameworks
  440. run: |
  441. mkdir -p "${HOME}"/ios_frameworks/
  442. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  443. - name: Setup quickstart
  444. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  445. "${HOME}"/ios_frameworks/Firebase/FirebaseMessaging/* \
  446. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  447. - name: Setup swift quickstart
  448. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  449. - name: Install Secret GoogleService-Info.plist
  450. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  451. quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  452. - name: Test Quickstart
  453. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  454. - name: Test Swift Quickstart
  455. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  456. - name: Remove data before upload
  457. if: ${{ failure() }}
  458. run: scripts/remove_data.sh messaging
  459. - uses: actions/upload-artifact@v2
  460. if: ${{ failure() }}
  461. with:
  462. name: quickstart_artifacts_messaging
  463. path: quickstart-ios/
  464. quickstart_framework_storage:
  465. # Don't run on private repo.
  466. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  467. needs: package-head
  468. env:
  469. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  470. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  471. FRAMEWORK_DIR: "Firebase-actions-dir"
  472. SDK: "Storage"
  473. runs-on: macOS-10.15
  474. steps:
  475. - uses: actions/checkout@v2
  476. - name: Get framework dir
  477. uses: actions/download-artifact@v1
  478. with:
  479. name: Firebase-actions-dir
  480. - name: Move frameworks
  481. run: |
  482. mkdir -p "${HOME}"/ios_frameworks/
  483. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  484. - name: Setup quickstart
  485. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  486. "${HOME}"/ios_frameworks/Firebase/FirebaseStorage/* \
  487. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  488. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  489. - name: Setup swift quickstart
  490. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" NON_FIREBASE_SDKS="FirebaseStorageSwift" scripts/setup_quickstart_framework.sh \
  491. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/*
  492. - name: Install Secret GoogleService-Info.plist
  493. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  494. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  495. - name: Test Quickstart
  496. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  497. - name: Test Swift Quickstart
  498. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  499. - name: Remove data before upload
  500. if: ${{ failure() }}
  501. run: scripts/remove_data.sh storage
  502. - uses: actions/upload-artifact@v2
  503. if: ${{ failure() }}
  504. with:
  505. name: quickstart_artifacts_storage
  506. path: quickstart-ios/