google-utilities-components.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. name: google-utilities-components
  2. on:
  3. pull_request:
  4. paths:
  5. - 'GoogleUtilitiesComponents**'
  6. - '.github/workflows/google-utilities-components.yml'
  7. - 'Gemfile*'
  8. schedule:
  9. # Run every day at 10pm (PST) - cron uses UTC times
  10. - cron: '0 6 * * *'
  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. runs-on: macos-12
  19. strategy:
  20. matrix:
  21. target: [ios, tvos, macos]
  22. steps:
  23. - uses: actions/checkout@v3
  24. - uses: ruby/setup-ruby@v1
  25. - name: Setup Bundler
  26. run: scripts/setup_bundler.sh
  27. - name: Build and test
  28. run: |
  29. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleUtilitiesComponents.podspec \
  30. --platforms=${{ matrix.target }}
  31. catalyst:
  32. # Don't run on private repo unless it is a PR.
  33. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  34. runs-on: macos-12
  35. steps:
  36. - uses: actions/checkout@v3
  37. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  38. with:
  39. cache_key: ${{ matrix.os }}
  40. - uses: ruby/setup-ruby@v1
  41. - name: Setup Bundler
  42. run: scripts/setup_bundler.sh
  43. - name: Setup project and Build for Catalyst
  44. run: scripts/test_catalyst.sh GoogleUtilitiesComponents test GoogleUtilitiesComponents-Unit-unit
  45. utilities-cron-only:
  46. # Don't run on private repo.
  47. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  48. runs-on: macos-12
  49. strategy:
  50. matrix:
  51. target: [ios, tvos, macos]
  52. flags: [
  53. '--use-static-frameworks'
  54. ]
  55. needs: pod-lib-lint
  56. steps:
  57. - uses: actions/checkout@v3
  58. - uses: ruby/setup-ruby@v1
  59. - name: Setup Bundler
  60. run: scripts/setup_bundler.sh
  61. - name: PodLibLint GoogleUtilitiesComponents Cron
  62. run: |
  63. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \
  64. GoogleUtilitiesComponents.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}