archiving.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. jobs:
  11. # Archive tests for pods that support iOS only.
  12. pods-ios-only-cron:
  13. # Don't run on private repo.
  14. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule')
  15. runs-on: macos-11
  16. strategy:
  17. matrix:
  18. # These need to be on a single line or else the formatting won't validate.
  19. pod: ["FirebaseAppDistribution", "FirebaseDynamicLinks", "FirebaseInAppMessaging", "FirebasePerformance"]
  20. steps:
  21. - uses: actions/checkout@v2
  22. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  23. with:
  24. cache_key: ${{ matrix.os }}
  25. - name: Setup Bundler
  26. run: scripts/setup_bundler.sh
  27. - name: Setup project and archive
  28. run: scripts/test_archiving.sh ${{ matrix.pod }} ios ArchiveOutputs/ios.xcarchive
  29. # Archive tests for pods that support iOS, tvOS, and macOS.
  30. pods-ios-tvos-macos-cron:
  31. # Don't run on private repo.
  32. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule')
  33. runs-on: macos-11
  34. strategy:
  35. matrix:
  36. target: [ios, tvos, macos]
  37. # These need to be on a single line or else the formatting won't validate.
  38. pod: ["FirebaseABTesting", "FirebaseAuth", "FirebaseCore", "FirebaseCrashlytics", "FirebaseDatabase", "FirebaseFirestore", "FirebaseFunctions", "FirebaseMessaging", "FirebaseRemoteConfig", "FirebaseStorage"]
  39. steps:
  40. - uses: actions/checkout@v2
  41. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  42. with:
  43. cache_key: ${{ matrix.os }}
  44. - name: Setup Bundler
  45. run: scripts/setup_bundler.sh
  46. - name: Setup project and archive
  47. run: scripts/test_archiving.sh ${{ matrix.pod }} ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive