build.yaml 874 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.workflow }}-${{ github.ref }}
  8. cancel-in-progress: true
  9. jobs:
  10. build-framework:
  11. runs-on: self-hosted
  12. strategy:
  13. matrix:
  14. destination: [
  15. 'macOS',
  16. 'iOS Simulator,name=iPhone 15,OS=17.5',
  17. 'tvOS Simulator,name=Apple TV,OS=17.5',
  18. 'watchOS Simulator,name=Apple Watch Series 9 (41mm),OS=10.5'
  19. ]
  20. xcode: [
  21. '15.2',
  22. '15.3',
  23. '16.0',
  24. '16.1',
  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