xcode.old 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. name: Build
  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. jobs:
  13. XCBuild:
  14. runs-on: macOS-11
  15. if: github.event.pull_request.draft == false
  16. env:
  17. PROJECT: Nextcloud.xcodeproj
  18. DESTINATION: platform=iOS Simulator,name=iPhone 11
  19. steps:
  20. - name: Set env var
  21. run: echo "DEVELOPER_DIR=$(xcode-select --print-path)" >> $GITHUB_ENV
  22. - uses: actions/checkout@v2
  23. - name: Restore Carhage Cache
  24. uses: actions/cache@v2
  25. id: carthage-cache
  26. with:
  27. path: Carthage
  28. key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
  29. restore-keys: |
  30. ${{ runner.os }}-carthage-
  31. - name: Carthage
  32. if: steps.carthage-cache.outputs.cache-hit != 'true'
  33. run: carthage bootstrap --use-xcframeworks --platform iOS
  34. - name: Download GoogleService-Info.plist
  35. run: wget "https://raw.githubusercontent.com/firebase/quickstart-ios/master/mock-GoogleService-Info.plist" -O GoogleService-Info.plist
  36. - name: Build & Test Nextcloud iOS
  37. run: |
  38. xcodebuild clean build test -project $PROJECT -scheme "$SCHEME" -destination "$DESTINATION"
  39. env:
  40. SCHEME: Nextcloud
  41. - name: Build iOS Share
  42. run: |
  43. xcodebuild build -project $PROJECT -scheme "$SCHEME" -destination "$DESTINATION"
  44. env:
  45. SCHEME: Share
  46. - name: Build iOS File Extension
  47. run: |
  48. xcodebuild build -project $PROJECT -scheme "$SCHEME" -destination "$DESTINATION"
  49. env:
  50. SCHEME: File Provider Extension
  51. - name: Build iOS Notification Extension
  52. run: |
  53. xcodebuild build -project $PROJECT -scheme "$SCHEME" -destination "$DESTINATION"
  54. env:
  55. SCHEME: Notification Service Extension
  56. - name: Build iOS Widget
  57. run: |
  58. xcodebuild build -project $PROJECT -scheme "$SCHEME" -destination "$DESTINATION"
  59. env:
  60. SCHEME: Widget
  61. - name: Build iOS Widget Dashboard IntentHandler
  62. run: |
  63. xcodebuild build -project $PROJECT -scheme "$SCHEME" -destination "$DESTINATION"
  64. env:
  65. SCHEME: WidgetDashboardIntentHandler