watchos-sample.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: watchos-sample
  2. on:
  3. pull_request:
  4. paths:
  5. # Sources
  6. - 'FirebaseABTesting/**'
  7. - 'FirebaseDatabase/**'
  8. - 'FirebaseRemoteConfig/**'
  9. - 'FirebaseStorageInternal/**'
  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. tv-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-11
  29. steps:
  30. - uses: actions/checkout@v2
  31. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  32. with:
  33. cache_key: ${{ matrix.os }}
  34. - name: Setup Bundler
  35. run: scripts/setup_bundler.sh
  36. - name: Prereqs
  37. run: scripts/install_prereqs.sh WatchOSSample watchOS
  38. - name: Build
  39. run: ([ -z $plist_secret ] || scripts/build.sh WatchOSSample watchOS)