archiving.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. name: archiving
  2. on:
  3. pull_request:
  4. paths:
  5. - '.github/workflows/archiving.yml'
  6. schedule:
  7. # Run every day at 2am (PST) - cron uses UTC times
  8. # This is set to 3 hours after zip workflow finishes so zip testing can run after.
  9. - cron: '0 10 * * *'
  10. concurrency:
  11. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  12. cancel-in-progress: true
  13. jobs:
  14. # Archive tests for pods that support iOS only.
  15. pods-ios-only-cron:
  16. # Don't run on private repo.
  17. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule')
  18. runs-on: macos-11
  19. strategy:
  20. matrix:
  21. # These need to be on a single line or else the formatting won't validate.
  22. pod: ["FirebaseAppDistribution", "FirebaseDynamicLinks", "FirebaseInAppMessaging", "FirebasePerformance"]
  23. steps:
  24. - uses: actions/checkout@v2
  25. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  26. with:
  27. cache_key: ${{ matrix.os }}
  28. - name: Setup Bundler
  29. run: scripts/setup_bundler.sh
  30. - name: Setup project and archive
  31. run: scripts/test_archiving.sh ${{ matrix.pod }} ios ArchiveOutputs/ios.xcarchive
  32. # Archive tests for pods that support iOS, tvOS, and macOS.
  33. pods-ios-tvos-macos-cron:
  34. # Don't run on private repo.
  35. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule')
  36. runs-on: macos-11
  37. strategy:
  38. matrix:
  39. target: [ios, tvos, macos]
  40. # These need to be on a single line or else the formatting won't validate.
  41. pod: ["FirebaseABTesting", "FirebaseAuth", "FirebaseCore", "FirebaseCrashlytics", "FirebaseDatabase", "FirebaseFirestore", "FirebaseFunctions", "FirebaseMessaging", "FirebaseRemoteConfig", "FirebaseStorage"]
  42. steps:
  43. - uses: actions/checkout@v2
  44. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  45. with:
  46. cache_key: ${{ matrix.os }}
  47. - name: Setup Bundler
  48. run: scripts/setup_bundler.sh
  49. - name: Setup project and archive
  50. run: scripts/test_archiving.sh ${{ matrix.pod }} ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive