core_internal.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. name: core_internal
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. paths:
  6. - 'FirebaseCoreInternal.podspec'
  7. - 'FirebaseCore/Internal/**'
  8. - '.github/workflows/core_internal.yml'
  9. - 'Gemfile*'
  10. schedule:
  11. # Run every day at 2am (PST) - cron uses UTC times
  12. - cron: '0 10 * * *'
  13. jobs:
  14. spm:
  15. uses: ./.github/workflows/common.yml
  16. with:
  17. target: FirebaseCoreInternalTests
  18. catalyst:
  19. strategy:
  20. matrix:
  21. target: [FirebaseCoreInternal-Unit-Unit, FirebaseCoreInternal-Unit-Integration]
  22. uses: ./.github/workflows/common_catalyst.yml
  23. with:
  24. product: FirebaseCoreInternal
  25. target: ${{ matrix.target }}
  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. target: [ios, tvos, macos, watchos]
  32. build-env:
  33. - os: macos-14
  34. xcode: Xcode_16.2
  35. swift_version: 5.9
  36. - os: macos-15
  37. xcode: Xcode_16.2
  38. swift_version: 5.9
  39. - os: macos-15
  40. xcode: Xcode_16.2
  41. swift_version: 6.0
  42. runs-on: ${{ matrix.build-env.os }}
  43. steps:
  44. - uses: actions/checkout@v4
  45. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  46. - name: Setup Bundler
  47. run: scripts/setup_bundler.sh
  48. - name: Xcode
  49. run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  50. - name: Set Swift swift_version
  51. run: sed -i "" "s/s.swift_version[[:space:]]*=[[:space:]]*'5.9'/s.swift_version = '${{ matrix.build-env.swift_version }}'/" FirebaseCoreInternal.podspec
  52. - name: Build and test
  53. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }}
  54. core-internal-cron-only:
  55. # Don't run on private repo.
  56. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  57. runs-on: macos-15
  58. strategy:
  59. matrix:
  60. target: [ios, tvos, macos]
  61. flags: [
  62. '--use-static-frameworks'
  63. ]
  64. needs: pod-lib-lint
  65. steps:
  66. - uses: actions/checkout@v4
  67. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  68. - name: Xcode
  69. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  70. - name: Setup Bundler
  71. run: scripts/setup_bundler.sh
  72. - name: PodLibLint CoreInternal Cron
  73. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}