performance.yml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. # Merge the yml file to main branch for the cron job schedule to be effective.
  2. # Reference: https://github.community/t/on-schedule-per-branch/17525
  3. name: performance
  4. permissions:
  5. contents: read
  6. on:
  7. workflow_dispatch:
  8. pull_request:
  9. paths:
  10. # Performance sources
  11. - 'FirebasePerformance/**'
  12. # Podspec
  13. - 'FirebasePerformance.podspec'
  14. # YML configuration file
  15. - '.github/workflows/performance.yml'
  16. # Re-usable workflows depended on by this file.
  17. - '.github/workflows/common.yml'
  18. - '.github/workflows/common_cocoapods.yml'
  19. - '.github/workflows/common_catalyst.yml'
  20. - '.github/workflows/common_quickstart.yml'
  21. - '.github/workflows/common_cocoapods_cron.yml'
  22. # Rebuild on Ruby infrastructure changes
  23. - 'Gemfile*'
  24. schedule:
  25. # Run every day at 12am (PDT) / 3am (EDT) - cron uses UTC times
  26. # Specified in format 'minutes hours day month dayofweek'
  27. - cron: '0 7 * * *'
  28. concurrency:
  29. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  30. cancel-in-progress: true
  31. jobs:
  32. # spm:
  33. # uses: ./.github/workflows/common.yml
  34. # with:
  35. # target: PerformanceUnit
  36. # platforms: iOS, tvOS
  37. # catalyst:
  38. # uses: ./.github/workflows/common_catalyst.yml
  39. # with:
  40. # product: FirebasePerformance
  41. # target:
  42. # buildonly: true
  43. # # Build and run the unit tests for Firebase performance SDK.
  44. # performance:
  45. # # Don't run on private repo unless it is a PR.
  46. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  47. # runs-on: macos-15
  48. # strategy:
  49. # matrix:
  50. # target: [iOS, tvOS]
  51. # test: [unit, proddev]
  52. # steps:
  53. # - uses: actions/checkout@v4
  54. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  55. # with:
  56. # cache_key: ${{ matrix.target }}${{ matrix.test }}
  57. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  58. # - name: Xcode
  59. # run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  60. # - name: Setup Bundler
  61. # run: scripts/setup_bundler.sh
  62. # - name: Install xcpretty
  63. # run: gem install xcpretty
  64. # - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  65. # run: scripts/third_party/travis/retry.sh scripts/build.sh Performance ${{ matrix.target }} ${{ matrix.test }}
  66. # pod_lib_lint:
  67. # uses: ./.github/workflows/common_cocoapods.yml
  68. # with:
  69. # product: FirebasePerformance
  70. # platforms: iOS, tvOS
  71. # #TODO: tests are not supported with Xcode 15 because the test spec depends on the iOS 8 GDCWebServer
  72. # buildonly_platforms: iOS, tvOS
  73. # TODO: The legacy ObjC quickstarts don't run with Xcode 15, re-able if we get these working.
  74. quickstart:
  75. uses: ./.github/workflows/common_quickstart.yml
  76. with:
  77. product: Performance
  78. setup_command: scripts/setup_quickstart_spm.sh performance
  79. plist_src_path: scripts/gha-encrypted/qs-performance.plist.gpg
  80. plist_dst_path: quickstart-ios/performance/GoogleService-Info.plist
  81. secrets:
  82. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  83. # quickstart-ftl-cron-only:
  84. # if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
  85. # env:
  86. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  87. # runs-on: macos-15
  88. # steps:
  89. # - uses: actions/checkout@v4
  90. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  91. # - uses: actions/setup-python@v5
  92. # with:
  93. # python-version: '3.11'
  94. # - name: Xcode
  95. # run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  96. # - name: Setup quickstart
  97. # run: scripts/setup_quickstart.sh performance
  98. # - name: Install Secret GoogleService-Info.plist
  99. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-performance.plist.gpg \
  100. # quickstart-ios/performance/GoogleService-Info.plist "$plist_secret"
  101. # - name: Build swift quickstart
  102. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Performance swift)
  103. # # - name: Build objc quickstart
  104. # # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Performance)
  105. # - id: ftl_test
  106. # uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
  107. # with:
  108. # credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
  109. # testapp_dir: quickstart-ios/build-for-testing
  110. # test_type: "xctest"
  111. # performance-cron-only:
  112. # needs: pod_lib_lint
  113. # uses: ./.github/workflows/common_cocoapods_cron.yml
  114. # with:
  115. # product: FirebasePerformance
  116. # platforms: '[ "ios", "tvos" ]'
  117. # flags: '[ "--skip-tests --use-static-frameworks" ]'