core_extension.yml 1.4 KB

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