core_extension.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: core_extension
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseCoreExtension.podspec'
  6. - 'FirebaseCore/Extension/**'
  7. - '.github/workflows/core_extension.yml'
  8. - 'Gemfile*'
  9. schedule:
  10. # Run every day at 2am (PST) - cron uses UTC times
  11. - cron: '0 10 * * *'
  12. jobs:
  13. # Since `FirebaseCoreExtension` only contains headers, linting is sufficient for testing.
  14. pod-lib-lint:
  15. # Don't run on private repo unless it is a PR.
  16. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  17. strategy:
  18. matrix:
  19. target: [ios, tvos, macos, watchos]
  20. os: [macos-14]
  21. xcode: [Xcode_15.2, Xcode_16]
  22. runs-on: ${{ matrix.os }}
  23. steps:
  24. - uses: actions/checkout@v4
  25. - uses: ruby/setup-ruby@v1
  26. - name: Setup Bundler
  27. run: scripts/setup_bundler.sh
  28. - name: Xcode
  29. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  30. - name: Build and test
  31. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreExtension.podspec --platforms=${{ matrix.target }}
  32. core-internal-cron-only:
  33. # Don't run on private repo.
  34. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  35. runs-on: macos-14
  36. strategy:
  37. matrix:
  38. target: [ios, tvos, macos]
  39. flags: [
  40. '--use-static-frameworks'
  41. ]
  42. needs: pod-lib-lint
  43. steps:
  44. - uses: actions/checkout@v4
  45. - uses: ruby/setup-ruby@v1
  46. - name: Setup Bundler
  47. run: scripts/setup_bundler.sh
  48. - name: PodLibLint CoreInternal Cron
  49. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreExtension.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}