watchos-sample.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: watchos-sample
  2. on:
  3. pull_request:
  4. paths:
  5. # Sources
  6. - 'FirebaseABTesting/**'
  7. - 'FirebaseDatabase/**'
  8. - 'FirebaseRemoteConfig/**'
  9. - 'FirebaseStorage/**'
  10. # Sample
  11. - 'Example/watchOSSample/**'
  12. # Firebase Podspec
  13. - 'Firebase.podspec'
  14. # This file
  15. - '.github/workflows/watchos-sample.yml'
  16. # Rebuild on Ruby infrastructure changes
  17. - 'Gemfile*'
  18. schedule:
  19. # Run every day at 10pm (PST) - cron uses UTC times
  20. - cron: '0 6 * * *'
  21. concurrency:
  22. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  23. cancel-in-progress: true
  24. jobs:
  25. watchos-sample-build-test:
  26. # Don't run on private repo unless it is a PR.
  27. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  28. runs-on: macos-14
  29. steps:
  30. - uses: actions/checkout@v4
  31. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  32. with:
  33. cache_key: watchos-sample
  34. - uses: ruby/setup-ruby@v1
  35. - name: Setup Bundler
  36. run: scripts/setup_bundler.sh
  37. - name: Prereqs
  38. run: scripts/install_prereqs.sh WatchOSSample watchOS
  39. - name: Build
  40. run: ([ -z $plist_secret ] || scripts/build.sh WatchOSSample watchOS)