additional-targets.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: Build additional targets
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - develop
  7. pull_request:
  8. types: [synchronize, opened, reopened, ready_for_review]
  9. branches:
  10. - master
  11. - develop
  12. concurrency:
  13. group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  14. cancel-in-progress: true
  15. jobs:
  16. build-and-test:
  17. name: Build and Test
  18. runs-on: macos-14
  19. if: github.event.pull_request.draft == false
  20. env:
  21. PROJECT: Nextcloud.xcodeproj
  22. DESTINATION: platform=iOS Simulator,name=iPhone 15
  23. steps:
  24. - name: Set env var
  25. run: echo "DEVELOPER_DIR=$(xcode-select --print-path)" >> $GITHUB_ENV
  26. - uses: actions/checkout@v4
  27. - name: Download GoogleService-Info.plist
  28. run: wget "https://raw.githubusercontent.com/firebase/quickstart-ios/master/mock-GoogleService-Info.plist" -O GoogleService-Info.plist
  29. - name: Build iOS Share
  30. run: |
  31. xcodebuild build -project $PROJECT -scheme "$SCHEME" -destination "$DESTINATION" | xcbeautify --quieter
  32. env:
  33. SCHEME: Share
  34. - name: Build iOS File Extension
  35. run: |
  36. xcodebuild build -project $PROJECT -scheme "$SCHEME" -destination "$DESTINATION" | xcbeautify --quieter
  37. env:
  38. SCHEME: File Provider Extension
  39. - name: Build iOS Notification Extension
  40. run: |
  41. xcodebuild build -project $PROJECT -scheme "$SCHEME" -destination "$DESTINATION" | xcbeautify --quieter
  42. env:
  43. SCHEME: Notification Service Extension
  44. - name: Build iOS Widget
  45. run: |
  46. xcodebuild build -project $PROJECT -scheme "$SCHEME" -destination "$DESTINATION" | xcbeautify --quieter
  47. env:
  48. SCHEME: Widget
  49. - name: Build iOS Widget Dashboard IntentHandler
  50. run: |
  51. xcodebuild build -project $PROJECT -scheme "$SCHEME" -destination "$DESTINATION" | xcbeautify --quieter
  52. env:
  53. SCHEME: WidgetDashboardIntentHandler