watchos-sample.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: watchos-sample
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. paths:
  6. # Sources
  7. - 'FirebaseABTesting/**'
  8. - 'FirebaseDatabase/**'
  9. - 'FirebaseRemoteConfig/**'
  10. - 'FirebaseStorage/**'
  11. # Sample
  12. - 'Example/watchOSSample/**'
  13. # Firebase Podspec
  14. - 'Firebase.podspec'
  15. # This file
  16. - '.github/workflows/watchos-sample.yml'
  17. # Rebuild on Ruby infrastructure changes
  18. - 'Gemfile*'
  19. schedule:
  20. # Run every day at 11pm (PDT) / 2am (EDT) - cron uses UTC times
  21. - cron: '0 6 * * *'
  22. concurrency:
  23. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  24. cancel-in-progress: true
  25. jobs:
  26. watchos-sample-build-test:
  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. runs-on: macos-14
  30. steps:
  31. - uses: actions/checkout@v4
  32. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  33. with:
  34. cache_key: watchos-sample
  35. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  36. - name: Setup Bundler
  37. run: scripts/setup_bundler.sh
  38. - name: Prereqs
  39. run: scripts/install_prereqs.sh WatchOSSample watchOS
  40. - name: Build
  41. run: ([ -z $plist_secret ] || scripts/build.sh WatchOSSample watchOS)