core_extension.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. build-env:
  21. - os: macos-14
  22. xcode: Xcode_15.2
  23. - os: macos-15
  24. xcode: Xcode_16.1
  25. runs-on: ${{ matrix.build-env.os }}
  26. steps:
  27. - uses: actions/checkout@v4
  28. - uses: ruby/setup-ruby@v1
  29. - name: Setup Bundler
  30. run: scripts/setup_bundler.sh
  31. - name: Xcode
  32. run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  33. - name: Build and test
  34. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreExtension.podspec --platforms=${{ matrix.target }}
  35. core-internal-cron-only:
  36. # Don't run on private repo.
  37. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  38. runs-on: macos-14
  39. strategy:
  40. matrix:
  41. target: [ios, tvos, macos]
  42. flags: [
  43. '--use-static-frameworks'
  44. ]
  45. needs: pod-lib-lint
  46. steps:
  47. - uses: actions/checkout@v4
  48. - uses: ruby/setup-ruby@v1
  49. - name: Setup Bundler
  50. run: scripts/setup_bundler.sh
  51. - name: PodLibLint CoreInternal Cron
  52. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreExtension.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}