core.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # TODO(Swift 6): Re-enable these tests.
  2. # name: core
  3. # on:
  4. # workflow_dispatch:
  5. # pull_request:
  6. # paths:
  7. # - 'FirebaseCore**'
  8. # - '.github/workflows/core.yml'
  9. # - 'Gemfile*'
  10. # schedule:
  11. # # Run every day at 2am (PST) - cron uses UTC times
  12. # - cron: '0 10 * * *'
  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: CoreUnit
  21. # catalyst:
  22. # uses: ./.github/workflows/common_catalyst.yml
  23. # with:
  24. # product: FirebaseCore
  25. # target: FirebaseCore-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. # # TODO: macos tests are blocked by https://github.com/erikdoe/ocmock/pull/532
  32. # target: [ios, tvos, macos --skip-tests, watchos]
  33. # build-env:
  34. # - os: macos-14
  35. # xcode: Xcode_16.2
  36. # - os: macos-15
  37. # xcode: Xcode_16.2
  38. # # TODO: Add Xcode matrix when Xcode 16 is ubiquitous on CI runners.
  39. # # - os: macos-15
  40. # # xcode: Xcode_16.3
  41. # runs-on: ${{ matrix.build-env.os }}
  42. # steps:
  43. # - uses: actions/checkout@v4
  44. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  45. # - name: Setup Bundler
  46. # run: scripts/setup_bundler.sh
  47. # - name: Xcode
  48. # run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  49. # - name: Build and test
  50. # run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCore.podspec --platforms=${{ matrix.target }}
  51. # spm-package-resolved:
  52. # env:
  53. # FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
  54. # runs-on: macos-15
  55. # outputs:
  56. # cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
  57. # steps:
  58. # - uses: actions/checkout@v4
  59. # - name: Xcode
  60. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  61. # - name: Generate Swift Package.resolved
  62. # id: swift_package_resolve
  63. # run: |
  64. # swift package resolve
  65. # - name: Generate cache key
  66. # id: generate_cache_key
  67. # run: |
  68. # cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
  69. # echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
  70. # - uses: actions/cache/save@v4
  71. # id: cache
  72. # with:
  73. # path: .build
  74. # key: ${{ steps.generate_cache_key.outputs.cache_key }}
  75. # core-cron-only:
  76. # # Don't run on private repo.
  77. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  78. # runs-on: macos-14
  79. # strategy:
  80. # matrix:
  81. # target: [ios, tvos, macos]
  82. # flags: [
  83. # '--use-static-frameworks'
  84. # ]
  85. # needs: pod-lib-lint
  86. # steps:
  87. # - uses: actions/checkout@v4
  88. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  89. # - name: Xcode
  90. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  91. # - name: Setup Bundler
  92. # run: scripts/setup_bundler.sh
  93. # - name: PodLibLint Core Cron
  94. # run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCore.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}