build.yaml 859 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: build
  2. defaults:
  3. run:
  4. shell: bash -leo pipefail {0}
  5. on: [push, pull_request]
  6. concurrency:
  7. group: ${{ github.head_ref || github.run_id }}
  8. cancel-in-progress: true
  9. jobs:
  10. build-framework:
  11. runs-on: self-hosted
  12. continue-on-error: true
  13. strategy:
  14. matrix:
  15. destination: [
  16. 'macOS',
  17. 'iOS Simulator,name=iPhone 15',
  18. 'tvOS Simulator,name=Apple TV',
  19. 'watchOS Simulator,name=Apple Watch Series 9 (41mm)'
  20. ]
  21. xcode: [
  22. '15.2',
  23. '15.3',
  24. '16.0',
  25. ]
  26. steps:
  27. - uses: actions/checkout@v4
  28. - name: Install Gems
  29. run: bundle install
  30. - name: Build framework
  31. env:
  32. DESTINATION: platform=${{ matrix.destination }}
  33. XCODE_VERSION: ${{ matrix.xcode }}
  34. run: bundle exec fastlane build_ci