mlmodeldownloader.yml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # TODO(Swift 6): Re-enable these tests.
  2. # name: mlmodeldownloader
  3. # on:
  4. # workflow_dispatch:
  5. # pull_request:
  6. # paths:
  7. # - 'FirebaseMLModelDownloader**'
  8. # - '.github/workflows/mlmodeldownloader.yml'
  9. # - 'Gemfile*'
  10. # schedule:
  11. # # Run every day at 11pm (PST) - cron uses UTC times
  12. # - cron: '0 7 * * *'
  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: FirebaseMLModelDownloaderUnit
  21. # catalyst:
  22. # uses: ./.github/workflows/common_catalyst.yml
  23. # with:
  24. # product: FirebaseMLModelDownloader
  25. # target: FirebaseMLModelDownloader-Unit-unit
  26. # pod-lib-lint:
  27. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  28. # env:
  29. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  30. # strategy:
  31. # matrix:
  32. # target: [ios, tvos, macos, watchos]
  33. # build-env:
  34. # - os: macos-14
  35. # xcode: Xcode_16.2
  36. # - os: macos-15
  37. # xcode: Xcode_16.2
  38. # runs-on: ${{ matrix.build-env.os }}
  39. # steps:
  40. # - uses: actions/checkout@v4
  41. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  42. # - name: Setup Bundler
  43. # run: scripts/setup_bundler.sh
  44. # - name: Configure test keychain
  45. # run: scripts/configure_test_keychain.sh
  46. # - name: Install GoogleService-Info.plist
  47. # run: |
  48. # mkdir FirebaseMLModelDownloader/Tests/Integration/Resources
  49. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/MLModelDownloader/GoogleService-Info.plist.gpg \
  50. # FirebaseMLModelDownloader/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
  51. # - name: Xcode
  52. # run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  53. # - name: Build and test
  54. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMLModelDownloader.podspec --platforms=${{ matrix.target }})
  55. # mlmodeldownloader-cron-only:
  56. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  57. # runs-on: macos-15
  58. # env:
  59. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  60. # strategy:
  61. # matrix:
  62. # target: [ios, tvos, macos]
  63. # needs: pod-lib-lint
  64. # steps:
  65. # - uses: actions/checkout@v4
  66. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  67. # - name: Xcode
  68. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  69. # - name: Setup Bundler
  70. # run: scripts/setup_bundler.sh
  71. # - name: Configure test keychain
  72. # run: scripts/configure_test_keychain.sh
  73. # - name: Install GoogleService-Info.plist
  74. # run: |
  75. # mkdir FirebaseMLModelDownloader/Tests/Integration/Resources
  76. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/MLModelDownloader/GoogleService-Info.plist.gpg \
  77. # FirebaseMLModelDownloader/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
  78. # - name: PodLibLint MLModelDownloader Cron
  79. # run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMLModelDownloader.podspec --platforms=${{ matrix.target }} --use-static-frameworks
  80. # mlmodeldownloader-sample-build-test:
  81. # # Don't run on private repo unless it is a PR.
  82. # if: github.repository == 'Firebase/firebase-ios-sdk' && (github.event_name == 'schedule' || github.event_name == 'pull_request')
  83. # env:
  84. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  85. # runs-on: macos-15
  86. # steps:
  87. # - uses: actions/checkout@v4
  88. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  89. # with:
  90. # cache_key: build-test${{ matrix.os }}
  91. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  92. # - name: Xcode
  93. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  94. # - name: Setup Bundler
  95. # run: scripts/setup_bundler.sh
  96. # - name: Install GoogleService-Info.plist
  97. # run: |
  98. # mkdir FirebaseMLModelDownloader/Apps/Sample/Resources
  99. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/MLModelDownloader/GoogleService-Info.plist.gpg \
  100. # FirebaseMLModelDownloader/Apps/Sample/Resources/GoogleService-Info.plist "$plist_secret"
  101. # - name: Prereqs
  102. # run: scripts/install_prereqs.sh MLModelDownloaderSample iOS
  103. # - name: Build
  104. # run: ([ -z $plist_secret ] || scripts/build.sh MLModelDownloaderSample iOS)