zip.yml 26 KB

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