sessions.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. name: sessions
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. paths:
  6. - 'FirebaseSessions**'
  7. - 'FirebaseSessions.podspec'
  8. - '.github/workflows/sessions.yml'
  9. - 'Gemfile*'
  10. schedule:
  11. # Run every day at 9am (PST) - cron uses UTC times
  12. - cron: '0 1 * * *'
  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: FirebaseSessionsUnit
  21. catalyst:
  22. uses: ./.github/workflows/common_catalyst.yml
  23. with:
  24. product: FirebaseSessions
  25. target: FirebaseSessions-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. target: [ios, tvos, macos, watchos]
  32. build-env:
  33. - os: macos-14
  34. xcode: Xcode_16.2
  35. tests:
  36. swift_version: 5.9
  37. # Flaky tests on CI
  38. - os: macos-15
  39. xcode: Xcode_16.3
  40. tests: --skip-tests
  41. swift_version: 5.9
  42. # Flaky tests on CI
  43. - os: macos-15
  44. xcode: Xcode_16.2
  45. tests: --skip-tests
  46. swift_version: 6.0
  47. runs-on: ${{ matrix.build-env.os }}
  48. steps:
  49. - uses: actions/checkout@v4
  50. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  51. - name: Setup Bundler
  52. run: scripts/setup_bundler.sh
  53. - name: Xcode
  54. run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  55. - name: Set Swift swift_version
  56. run: sed -i "" "s/s.swift_version[[:space:]]*=[[:space:]]*'5.9'/s.swift_version = '${{ matrix.build-env.swift_version }}'/" FirebaseSessions.podspec
  57. - uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
  58. with:
  59. timeout_minutes: 120
  60. max_attempts: 3
  61. retry_on: error
  62. retry_wait_seconds: 120
  63. command: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSessions.podspec --platforms=${{ matrix.target }} ${{ matrix.build-env.tests }}