build.yaml 949 B

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