client_app.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: client_app
  2. on:
  3. pull_request:
  4. paths:
  5. - ".github/workflows/client_app.yml"
  6. - "Package.swift"
  7. - ".swiftpm/*"
  8. - "*.podspec"
  9. - "scripts/install_prereqs.sh"
  10. - "scripts/build.sh"
  11. - "ClientApp/**"
  12. - "Gemfile*"
  13. schedule:
  14. # Run every day at 12am (PST) - cron uses UTC times
  15. - cron: "0 8 * * *"
  16. concurrency:
  17. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  18. cancel-in-progress: true
  19. jobs:
  20. client-app-spm:
  21. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  22. env:
  23. FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
  24. runs-on: macos-12
  25. strategy:
  26. matrix:
  27. platform: [iOS]
  28. # TODO(Xcode 14.3): Remove above line and uncomment below array when GHA
  29. # supports Ventura/Xcode 14.3.
  30. # platform: [iOS, tvOS, macOS, catalyst]
  31. steps:
  32. - uses: actions/checkout@v3
  33. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  34. with:
  35. cache_key: ${{ matrix.os }}
  36. - name: Build Client App –– ${{ matrix.platform }}
  37. run: scripts/third_party/travis/retry.sh ./scripts/build.sh SwiftPMClientApp ${{ matrix.platform }} xcodebuild
  38. # TODO(ncooke3): Re-enable when `rc-swift-merged` is ready to merge into `master`. See #11766.
  39. # client-app-cocoapods:
  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. # runs-on: macos-12
  43. # steps:
  44. # - uses: actions/checkout@v3
  45. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  46. # with:
  47. # cache_key: ${{ matrix.os }}
  48. # - uses: ruby/setup-ruby@v1
  49. # - name: Setup Bundler
  50. # run: scripts/setup_bundler.sh
  51. # - name: Prereqs
  52. # run: scripts/install_prereqs.sh ClientApp iOS xcodebuild
  53. # - name: Build
  54. # run: scripts/build.sh CocoaPodsClientApp iOS xcodebuild