appdistribution.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. name: appdistribution
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseAppDistribution**'
  6. - '.github/workflows/appdistribution.yml'
  7. - 'Gemfile*'
  8. schedule:
  9. # Run every day at 1am (PST) - cron uses UTC times
  10. - cron: '0 9 * * *'
  11. concurrency:
  12. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  13. cancel-in-progress: true
  14. jobs:
  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]
  21. os: [macos-14, macos-13]
  22. include:
  23. - os: macos-14
  24. xcode: Xcode_15.3
  25. - os: macos-13
  26. xcode: Xcode_15.2
  27. runs-on: ${{ matrix.os }}
  28. steps:
  29. - uses: actions/checkout@v4
  30. - uses: ruby/setup-ruby@v1
  31. - name: Setup Bundler
  32. run: scripts/setup_bundler.sh
  33. - name: Xcode
  34. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  35. - name: Build and test
  36. run: |
  37. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  38. --platforms=${{ matrix.target }}
  39. spm:
  40. # Don't run on private repo unless it is a PR.
  41. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  42. strategy:
  43. matrix:
  44. os: [macos-14, macos-13]
  45. include:
  46. - os: macos-14
  47. xcode: Xcode_15.3
  48. - os: macos-13
  49. xcode: Xcode_15.2
  50. runs-on: ${{ matrix.os }}
  51. steps:
  52. - uses: actions/checkout@v4
  53. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  54. with:
  55. cache_key: spm${{ matrix.os }}-${{ matrix.xcode }}
  56. - name: Xcode
  57. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  58. - name: Initialize xcodebuild
  59. run: scripts/setup_spm_tests.sh
  60. - name: iOS Unit Tests
  61. run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppDistributionUnit iOS spm
  62. catalyst:
  63. # Don't run on private repo unless it is a PR.
  64. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  65. runs-on: macos-14
  66. steps:
  67. - uses: actions/checkout@v4
  68. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  69. with:
  70. cache_key: catalyst${{ matrix.os }}
  71. - uses: ruby/setup-ruby@v1
  72. - name: Setup Bundler
  73. run: scripts/setup_bundler.sh
  74. - name: Setup project and Build for Catalyst
  75. run: scripts/test_catalyst.sh FirebaseAppDistribution test FirebaseAppDistribution-Unit-unit
  76. appdistribution-cron-only:
  77. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  78. runs-on: macos-14
  79. strategy:
  80. matrix:
  81. target: [ios]
  82. flags: [
  83. '--use-static-frameworks'
  84. ]
  85. needs: pod-lib-lint
  86. steps:
  87. - uses: actions/checkout@v4
  88. - uses: ruby/setup-ruby@v1
  89. - name: Setup Bundler
  90. run: scripts/setup_bundler.sh
  91. - name: PodLibLint App Distribution Cron
  92. run: |
  93. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  94. --platforms=${{ matrix.target }} ${{ matrix.flags }}