appdistribution.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. # TODO(Swift 6): Re-enable these tests.
  2. # name: appdistribution
  3. # on:
  4. # workflow_dispatch:
  5. # pull_request:
  6. # paths:
  7. # - 'FirebaseAppDistribution**'
  8. # - '.github/workflows/appdistribution.yml'
  9. # - 'Gemfile*'
  10. # schedule:
  11. # # Run every day at 1am (PST) - cron uses UTC times
  12. # - cron: '0 9 * * *'
  13. # concurrency:
  14. # group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  15. # cancel-in-progress: true
  16. # jobs:
  17. # spm:
  18. # uses: ./.github/workflows/common.yml
  19. # with:
  20. # target: AppDistributionUnit
  21. # platforms: iOS
  22. # catalyst:
  23. # uses: ./.github/workflows/common_catalyst.yml
  24. # with:
  25. # product: FirebaseAppDistribution
  26. # target: FirebaseAppDistribution-Unit-unit
  27. # pod-lib-lint:
  28. # # Don't run on private repo unless it is a PR.
  29. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  30. <<<<<<< HEAD
  31. # strategy:
  32. # matrix:
  33. # include:
  34. # - os: macos-15
  35. # xcode: Xcode_16.2
  36. # runs-on: ${{ matrix.os }}
  37. # steps:
  38. # - uses: actions/checkout@v4
  39. # - uses: ruby/setup-ruby@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. # spm-package-resolved:
  49. # env:
  50. # FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
  51. # runs-on: macos-15
  52. # outputs:
  53. # cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
  54. # steps:
  55. # - uses: actions/checkout@v4
  56. # - name: Generate Swift Package.resolved
  57. # id: swift_package_resolve
  58. # run: |
  59. # swift package resolve
  60. # - name: Generate cache key
  61. # id: generate_cache_key
  62. # run: |
  63. # cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
  64. # echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
  65. # - uses: actions/cache/save@v4
  66. # id: cache
  67. # with:
  68. # path: .build
  69. # key: ${{ steps.generate_cache_key.outputs.cache_key }}
  70. # spm:
  71. # # Don't run on private repo unless it is a PR.
  72. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  73. # needs: [spm-package-resolved]
  74. # strategy:
  75. # matrix:
  76. # include:
  77. # - os: macos-15
  78. # xcode: Xcode_16.2
  79. # runs-on: ${{ matrix.os }}
  80. # steps:
  81. # - uses: actions/checkout@v4
  82. # - uses: actions/cache/restore@v4
  83. # with:
  84. # path: .build
  85. # key: ${{needs.spm-package-resolved.outputs.cache_key}}
  86. # - name: Xcode
  87. # run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  88. # - name: Initialize xcodebuild
  89. # run: scripts/setup_spm_tests.sh
  90. # - name: iOS Unit Tests
  91. # run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppDistributionUnit iOS spm
  92. # catalyst:
  93. # # Don't run on private repo unless it is a PR.
  94. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  95. # runs-on: macos-15
  96. # steps:
  97. # - uses: actions/checkout@v4
  98. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  99. # with:
  100. # cache_key: catalyst${{ matrix.os }}
  101. # - uses: ruby/setup-ruby@v1
  102. # - name: Setup Bundler
  103. # run: scripts/setup_bundler.sh
  104. # - name: Setup project and Build for Catalyst
  105. # run: scripts/test_catalyst.sh FirebaseAppDistribution test FirebaseAppDistribution-Unit-unit
  106. # appdistribution-cron-only:
  107. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  108. # runs-on: macos-15
  109. # strategy:
  110. # matrix:
  111. # target: [ios]
  112. # flags: [
  113. # '--use-static-frameworks'
  114. # ]
  115. # needs: pod-lib-lint
  116. # steps:
  117. # - uses: actions/checkout@v4
  118. # - uses: ruby/setup-ruby@v1
  119. # - name: Setup Bundler
  120. # run: scripts/setup_bundler.sh
  121. # - name: PodLibLint App Distribution Cron
  122. # run: |
  123. # scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  124. # --platforms=${{ matrix.target }} ${{ matrix.flags }}
  125. =======
  126. # strategy:
  127. # matrix:
  128. # include:
  129. # - os: macos-14
  130. # xcode: Xcode_16.2
  131. # - os: macos-15
  132. # xcode: Xcode_16.3
  133. # runs-on: ${{ matrix.os }}
  134. # steps:
  135. # - uses: actions/checkout@v4
  136. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  137. # - name: Setup Bundler
  138. # run: scripts/setup_bundler.sh
  139. # - name: Xcode
  140. # run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  141. # - name: Build and test
  142. # run: |
  143. # scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  144. # --platforms=ios
  145. # appdistribution-cron-only:
  146. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  147. # runs-on: macos-15
  148. # strategy:
  149. # matrix:
  150. # target: [ios]
  151. # flags: [
  152. # '--use-static-frameworks'
  153. # ]
  154. # needs: pod-lib-lint
  155. # steps:
  156. # - uses: actions/checkout@v4
  157. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  158. # - name: Setup Bundler
  159. # run: scripts/setup_bundler.sh
  160. # - name: PodLibLint App Distribution Cron
  161. # run: |
  162. # scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  163. # --platforms=${{ matrix.target }} ${{ matrix.flags }}
  164. >>>>>>> swift-6