core_extension.yml 2.2 KB

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