archiving.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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-12
  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@v3
  25. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  26. with:
  27. cache_key: ${{ matrix.os }}
  28. - uses: ruby/setup-ruby@v1
  29. - name: Setup Bundler
  30. run: scripts/setup_bundler.sh
  31. - name: Setup project and archive
  32. run: scripts/test_archiving.sh ${{ matrix.pod }} ios ArchiveOutputs/ios.xcarchive
  33. # Archive tests for pods that support iOS, tvOS, and macOS.
  34. pods-ios-tvos-macos-cron:
  35. # Don't run on private repo.
  36. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule')
  37. runs-on: macos-12
  38. strategy:
  39. matrix:
  40. target: [ios, tvos, macos]
  41. # These need to be on a single line or else the formatting won't validate.
  42. pod: ["FirebaseABTesting", "FirebaseAuth", "FirebaseCore", "FirebaseCrashlytics", "FirebaseDatabase", "FirebaseFirestore", "FirebaseFunctions", "FirebaseMessaging", "FirebaseRemoteConfig", "FirebaseStorage"]
  43. steps:
  44. - uses: actions/checkout@v3
  45. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  46. with:
  47. cache_key: ${{ matrix.os }}
  48. - uses: ruby/setup-ruby@v1
  49. - name: Setup Bundler
  50. run: scripts/setup_bundler.sh
  51. - name: Setup project and archive
  52. run: scripts/test_archiving.sh ${{ matrix.pod }} ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive