appdistribution.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. name: appdistribution
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. paths:
  6. - 'FirebaseAppDistribution**'
  7. - '.github/workflows/appdistribution.yml'
  8. - 'Gemfile*'
  9. schedule:
  10. # Run every day at 1am (PST) - cron uses UTC times
  11. - cron: '0 9 * * *'
  12. concurrency:
  13. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  14. cancel-in-progress: true
  15. jobs:
  16. spm:
  17. uses: ./.github/workflows/common.yml
  18. with:
  19. target: AppDistributionUnit
  20. platforms: iOS
  21. catalyst:
  22. uses: ./.github/workflows/common_catalyst.yml
  23. with:
  24. product: FirebaseAppDistribution
  25. target: FirebaseAppDistribution-Unit-unit
  26. pod-lib-lint:
  27. # Don't run on private repo unless it is a PR.
  28. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  29. strategy:
  30. matrix:
  31. include:
  32. - os: macos-14
  33. xcode: Xcode_16.2
  34. - os: macos-15
  35. xcode: Xcode_16.3
  36. runs-on: ${{ matrix.os }}
  37. steps:
  38. - uses: actions/checkout@v4
  39. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  40. - name: Setup Bundler
  41. run: scripts/setup_bundler.sh
  42. - name: Xcode
  43. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  44. - name: Build and test
  45. run: |
  46. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  47. --platforms=ios
  48. appdistribution-cron-only:
  49. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  50. runs-on: macos-15
  51. strategy:
  52. matrix:
  53. target: [ios]
  54. flags: [
  55. '--use-static-frameworks'
  56. ]
  57. needs: pod-lib-lint
  58. steps:
  59. - uses: actions/checkout@v4
  60. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  61. - name: Setup Bundler
  62. run: scripts/setup_bundler.sh
  63. - name: PodLibLint App Distribution Cron
  64. run: |
  65. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  66. --platforms=${{ matrix.target }} ${{ matrix.flags }}