zip.yml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  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-11
  133. steps:
  134. - uses: actions/checkout@v2
  135. # Facebook SDK 12.0.1 requires Xcode 13
  136. - name: Xcode 13.0
  137. run: sudo xcode-select -s /Applications/Xcode_13.0.app/Contents/Developer
  138. - name: Get framework dir
  139. uses: actions/download-artifact@v1
  140. with:
  141. name: Firebase-actions-dir
  142. - name: Move frameworks
  143. run: |
  144. mkdir -p "${HOME}"/ios_frameworks/
  145. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  146. - name: Setup Swift Quickstart
  147. run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="FBSDKLoginKit FBSDKCoreKit FBSDKCoreKit_Basics FBAEMKit" scripts/setup_quickstart_framework.sh \
  148. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
  149. "${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \
  150. "${HOME}"/ios_frameworks/Firebase/GoogleSignIn/* \
  151. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  152. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  153. - name: Install Secret GoogleService-Info.plist
  154. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  155. quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  156. - name: Test Swift Quickstart
  157. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  158. - name: Remove data before upload
  159. if: ${{ failure() }}
  160. run: scripts/remove_data.sh authentiation
  161. - uses: actions/upload-artifact@v2
  162. if: ${{ failure() }}
  163. with:
  164. name: quickstart_artifacts_auth
  165. path: quickstart-ios/
  166. quickstart_framework_config:
  167. # Don't run on private repo.
  168. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  169. needs: package-head
  170. env:
  171. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  172. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  173. FRAMEWORK_DIR: "Firebase-actions-dir"
  174. SDK: "Config"
  175. runs-on: macOS-10.15
  176. steps:
  177. - uses: actions/checkout@v2
  178. - name: Get framework dir
  179. uses: actions/download-artifact@v1
  180. with:
  181. name: Firebase-actions-dir
  182. - name: Move frameworks
  183. run: |
  184. mkdir -p "${HOME}"/ios_frameworks/
  185. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  186. - name: Setup Swift Quickstart
  187. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  188. "${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* \
  189. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  190. - name: Install Secret GoogleService-Info.plist
  191. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \
  192. quickstart-ios/config/GoogleService-Info.plist "$plist_secret"
  193. - name: Test Swift Quickstart
  194. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  195. - name: Remove data before upload
  196. if: ${{ failure() }}
  197. run: scripts/remove_data.sh config
  198. - uses: actions/upload-artifact@v2
  199. if: ${{ failure() }}
  200. with:
  201. name: quickstart_artifacts_config
  202. path: quickstart-ios/
  203. quickstart_framework_crashlytics:
  204. # Don't run on private repo.
  205. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  206. needs: package-head
  207. env:
  208. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  209. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  210. FRAMEWORK_DIR: "Firebase-actions-dir"
  211. SDK: "Crashlytics"
  212. runs-on: macOS-10.15
  213. steps:
  214. - uses: actions/checkout@v2
  215. - name: Get framework dir
  216. uses: actions/download-artifact@v1
  217. with:
  218. name: Firebase-actions-dir
  219. - name: Move frameworks
  220. run: |
  221. mkdir -p "${HOME}"/ios_frameworks/
  222. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  223. - name: Setup quickstart
  224. env:
  225. LEGACY: true
  226. run: |
  227. SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  228. "${HOME}"/ios_frameworks/Firebase/FirebaseCrashlytics/* \
  229. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  230. cp quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Firebase/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart
  231. cp quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Firebase/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart
  232. chmod +x quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/run
  233. chmod +x quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/upload-symbols
  234. # TODO(#8057): Restore Swift Quickstart
  235. # - name: Setup swift quickstart
  236. # run: |
  237. # SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" NON_FIREBASE_SDKS="ReachabilitySwift" scripts/setup_quickstart_framework.sh \
  238. # "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/*
  239. - name: Install Secret GoogleService-Info.plist
  240. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  241. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  242. - name: Test Quickstart
  243. env:
  244. LEGACY: true
  245. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  246. # - name: Test Swift Quickstart
  247. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  248. - name: Remove data before upload
  249. env:
  250. LEGACY: true
  251. if: ${{ failure() }}
  252. run: scripts/remove_data.sh crashlytics
  253. - uses: actions/upload-artifact@v2
  254. if: ${{ failure() }}
  255. with:
  256. name: quickstart_artifacts_crashlytics
  257. path: quickstart-ios/
  258. quickstart_framework_database:
  259. # Don't run on private repo.
  260. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  261. needs: package-head
  262. env:
  263. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  264. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  265. FRAMEWORK_DIR: "Firebase-actions-dir"
  266. SDK: "Database"
  267. runs-on: macOS-10.15
  268. steps:
  269. - uses: actions/checkout@v2
  270. - name: Get framework dir
  271. uses: actions/download-artifact@v1
  272. with:
  273. name: Firebase-actions-dir
  274. - name: Move frameworks
  275. run: |
  276. mkdir -p "${HOME}"/ios_frameworks/
  277. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  278. - name: Setup quickstart
  279. run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="FirebaseDatabaseUI" scripts/setup_quickstart_framework.sh \
  280. "${HOME}"/ios_frameworks/Firebase/FirebaseDatabase/* \
  281. "${HOME}"/ios_frameworks/Firebase/FirebaseStorage/* \
  282. "${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/* \
  283. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  284. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
  285. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  286. - name: Install Secret GoogleService-Info.plist
  287. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-database.plist.gpg \
  288. quickstart-ios/database/GoogleService-Info.plist "$plist_secret"
  289. - name: Test Quickstart
  290. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  291. - name: Remove data before upload
  292. if: ${{ failure() }}
  293. run: scripts/remove_data.sh database
  294. - uses: actions/upload-artifact@v2
  295. if: ${{ failure() }}
  296. with:
  297. name: quickstart_artifacts database
  298. path: quickstart-ios/
  299. quickstart_framework_dynamiclinks:
  300. # Don't run on private repo.
  301. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  302. needs: package-head
  303. env:
  304. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  305. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  306. FRAMEWORK_DIR: "Firebase-actions-dir"
  307. SDK: "DynamicLinks"
  308. runs-on: macOS-10.15
  309. steps:
  310. - uses: actions/checkout@v2
  311. - name: Get framework dir
  312. uses: actions/download-artifact@v1
  313. with:
  314. name: Firebase-actions-dir
  315. - name: Move frameworks
  316. run: |
  317. mkdir -p "${HOME}"/ios_frameworks/
  318. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  319. - name: Setup Objc Quickstart
  320. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  321. "${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \
  322. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  323. - name: Setup Swift Quickstart
  324. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  325. - name: Update Environment Variable For DynamicLinks
  326. run: |
  327. sed -i '' 's#DYNAMIC_LINK_DOMAIN#https://qpf6m.app.goo.gl#' quickstart-ios/dynamiclinks/DynamicLinksExample/DynamicLinksExample.entitlements
  328. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExample/ViewController.m
  329. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExampleSwift/ViewController.swift
  330. - name: Install Secret GoogleService-Info.plist
  331. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-dynamiclinks.plist.gpg \
  332. quickstart-ios/dynamiclinks/GoogleService-Info.plist "$plist_secret"
  333. - name: Test Objc Quickstart
  334. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  335. - name: Test Swift Quickstart
  336. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  337. - name: Remove data before upload
  338. if: ${{ failure() }}
  339. run: scripts/remove_data.sh dynamiclinks
  340. - uses: actions/upload-artifact@v2
  341. if: ${{ failure() }}
  342. with:
  343. name: quickstart_artifacts_dynamiclinks
  344. path: quickstart-ios/
  345. quickstart_framework_firestore:
  346. # Don't run on private repo.
  347. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  348. needs: package-head
  349. env:
  350. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  351. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  352. FRAMEWORK_DIR: "Firebase-actions-dir"
  353. SDK: "Firestore"
  354. runs-on: macOS-10.15
  355. steps:
  356. - uses: actions/checkout@v2
  357. - name: Get framework dir
  358. uses: actions/download-artifact@v1
  359. with:
  360. name: Firebase-actions-dir
  361. - name: Move frameworks
  362. run: |
  363. mkdir -p "${HOME}"/ios_frameworks/
  364. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  365. - name: Setup quickstart
  366. run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="SDWebImage FirebaseAuthUI FirebaseEmailAuthUI FirebaseFirestoreSwift" scripts/setup_quickstart_framework.sh \
  367. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
  368. "${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/* \
  369. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  370. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  371. - name: Install Secret GoogleService-Info.plist
  372. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-firestore.plist.gpg \
  373. quickstart-ios/firestore/GoogleService-Info.plist "$plist_secret"
  374. - name: Test Quickstart
  375. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  376. - name: Remove data before upload
  377. if: ${{ failure() }}
  378. run: scripts/remove_data.sh firestore
  379. - uses: actions/upload-artifact@v2
  380. if: ${{ failure() }}
  381. with:
  382. name: quickstart_artifacts_firestore
  383. path: quickstart-ios/
  384. quickstart_framework_inappmessaging:
  385. # Don't run on private repo.
  386. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  387. needs: package-head
  388. env:
  389. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  390. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  391. FRAMEWORK_DIR: "Firebase-actions-dir"
  392. SDK: "InAppMessaging"
  393. runs-on: macOS-10.15
  394. steps:
  395. - uses: actions/checkout@v2
  396. - name: Get framework dir
  397. uses: actions/download-artifact@v1
  398. with:
  399. name: Firebase-actions-dir
  400. - name: Move frameworks
  401. run: |
  402. mkdir -p "${HOME}"/ios_frameworks/
  403. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  404. - name: Setup quickstart
  405. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  406. "${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \
  407. "${HOME}"/ios_frameworks/Firebase/FirebaseInAppMessaging/* \
  408. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  409. - name: Setup swift quickstart
  410. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  411. - name: Install Secret GoogleService-Info.plist
  412. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
  413. quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
  414. - name: Test Quickstart
  415. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  416. - name: Test Swift Quickstart
  417. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  418. - name: Remove data before upload
  419. if: ${{ failure() }}
  420. run: scripts/remove_data.sh inappmessaging
  421. - uses: actions/upload-artifact@v2
  422. if: ${{ failure() }}
  423. with:
  424. name: quickstart_artifacts_ihappmessaging
  425. path: quickstart-ios/
  426. quickstart_framework_messaging:
  427. # Don't run on private repo.
  428. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  429. needs: package-head
  430. env:
  431. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  432. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  433. FRAMEWORK_DIR: "Firebase-actions-dir"
  434. SDK: "Messaging"
  435. runs-on: macOS-10.15
  436. steps:
  437. - uses: actions/checkout@v2
  438. - name: Get framework dir
  439. uses: actions/download-artifact@v1
  440. with:
  441. name: Firebase-actions-dir
  442. - name: Move frameworks
  443. run: |
  444. mkdir -p "${HOME}"/ios_frameworks/
  445. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  446. - name: Setup quickstart
  447. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  448. "${HOME}"/ios_frameworks/Firebase/FirebaseMessaging/* \
  449. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  450. - name: Setup swift quickstart
  451. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
  452. - name: Install Secret GoogleService-Info.plist
  453. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  454. quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  455. - name: Test Quickstart
  456. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  457. - name: Test Swift Quickstart
  458. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  459. - name: Remove data before upload
  460. if: ${{ failure() }}
  461. run: scripts/remove_data.sh messaging
  462. - uses: actions/upload-artifact@v2
  463. if: ${{ failure() }}
  464. with:
  465. name: quickstart_artifacts_messaging
  466. path: quickstart-ios/
  467. quickstart_framework_storage:
  468. # Don't run on private repo.
  469. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  470. needs: package-head
  471. env:
  472. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  473. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  474. FRAMEWORK_DIR: "Firebase-actions-dir"
  475. SDK: "Storage"
  476. runs-on: macOS-10.15
  477. steps:
  478. - uses: actions/checkout@v2
  479. - name: Get framework dir
  480. uses: actions/download-artifact@v1
  481. with:
  482. name: Firebase-actions-dir
  483. - name: Move frameworks
  484. run: |
  485. mkdir -p "${HOME}"/ios_frameworks/
  486. find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
  487. - name: Setup quickstart
  488. run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
  489. "${HOME}"/ios_frameworks/Firebase/FirebaseStorage/* \
  490. "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
  491. "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
  492. - name: Setup swift quickstart
  493. run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" NON_FIREBASE_SDKS="FirebaseStorageSwift" scripts/setup_quickstart_framework.sh \
  494. "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/*
  495. - name: Install Secret GoogleService-Info.plist
  496. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  497. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  498. - name: Test Quickstart
  499. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
  500. - name: Test Swift Quickstart
  501. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
  502. - name: Remove data before upload
  503. if: ${{ failure() }}
  504. run: scripts/remove_data.sh storage
  505. - uses: actions/upload-artifact@v2
  506. if: ${{ failure() }}
  507. with:
  508. name: quickstart_artifacts_storage
  509. path: quickstart-ios/