|
| 1 | +name: DirectBindingsApp |
| 2 | +permissions: |
| 3 | + contents: read |
| 4 | + statuses: read |
| 5 | + pull-requests: read |
| 6 | + actions: read |
| 7 | + checks: write |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: |
| 11 | + - main |
| 12 | + pull_request: |
| 13 | + branches: |
| 14 | + - "*" |
| 15 | + |
| 16 | +jobs: |
| 17 | + build: |
| 18 | + name: Build (${{ matrix.configuration['scheme'] }} - ${{ matrix.configuration['platform'] }}) |
| 19 | + runs-on: macos-12 |
| 20 | + strategy: |
| 21 | + fail-fast: false |
| 22 | + matrix: |
| 23 | + configuration: |
| 24 | + - scheme: DirectBindingsApp |
| 25 | + destination: platform=iOS Simulator,OS=15.4,name=iPhone 13 Pro |
| 26 | + platform: iOS Simulator |
| 27 | + workspace: LDKFramework.xcworkspace |
| 28 | + - scheme: DirectBindingsAppTests |
| 29 | + destination: platform=iOS Simulator,OS=15.4,name=iPhone 13 Pro |
| 30 | + platform: iOS Simulator |
| 31 | + workspace: LDKFramework.xcworkspace |
| 32 | + xcode-unit-test: DirectBindingsAppTests |
| 33 | + env: |
| 34 | + DEVELOPER_DIR: /Applications/Xcode_13.3.1.app/Contents/Developer |
| 35 | + steps: |
| 36 | + - name: Configure Xcode |
| 37 | + uses: maxim-lobanov/setup-xcode@v1 |
| 38 | + with: |
| 39 | + xcode-version: latest |
| 40 | + - name: Checkout |
| 41 | + uses: actions/checkout@v2 |
| 42 | + - name: Install Dependencies |
| 43 | + uses: ./.github/actions/install-dependencies |
| 44 | + - name: Build |
| 45 | + id: build |
| 46 | + uses: ./.github/actions/build-for-testing |
| 47 | + with: |
| 48 | + workspace: ${{ matrix.configuration['workspace'] }} |
| 49 | + scheme: ${{ matrix.configuration['scheme'] }} |
| 50 | + destination: ${{ matrix.configuration['destination'] }} |
| 51 | + - name: Xcode Unit Test |
| 52 | + if: ${{ matrix.configuration['xcode-unit-test'] != '' }} |
| 53 | + continue-on-error: true |
| 54 | + uses: ./.github/actions/test-without-building |
| 55 | + with: |
| 56 | + workspace: ${{ matrix.configuration['workspace'] }} |
| 57 | + scheme: ${{ matrix.configuration['scheme'] }} |
| 58 | + destination: ${{ matrix.configuration['destination'] }} |
| 59 | + test-plan: ${{ matrix.configuration['xcode-unit-test'] }} |
| 60 | + artifact-prefix: unit-tests-${{ matrix.configuration['sdk-name'] }} |
| 61 | + check-name: Xcode Unit Tests (${{ matrix.configuration['platform'] }}) |
0 commit comments