|
1 | 1 | name: Build Frameworks
|
2 | 2 | permissions:
|
3 |
| - contents: read |
4 |
| - statuses: read |
5 |
| - pull-requests: read |
6 |
| - actions: read |
7 |
| - checks: write |
| 3 | + contents: read |
| 4 | + statuses: read |
| 5 | + pull-requests: read |
| 6 | + actions: read |
| 7 | + checks: write |
8 | 8 | on:
|
9 |
| - push: |
10 |
| - branches: |
11 |
| - - main |
12 |
| - pull_request: |
13 |
| - branches: |
14 |
| - - "*" |
| 9 | + push: |
| 10 | + branches: |
| 11 | + - main |
| 12 | + pull_request: |
| 13 | + branches: |
| 14 | + - "*" |
15 | 15 |
|
16 | 16 | jobs:
|
17 |
| - build: |
18 |
| - name: Build Framework (${{ matrix.configuration['platform'] }}) |
19 |
| - runs-on: macos-12 |
20 |
| - strategy: |
21 |
| - fail-fast: false |
22 |
| - matrix: |
23 |
| - configuration: |
24 |
| - - scheme: LDKFramework |
25 |
| - destination: generic/platform=iOS |
26 |
| - platform: iOS |
27 |
| - workspace: LDKFramework.xcworkspace |
28 |
| - - scheme: LDKFramework |
29 |
| - destination: platform=iOS Simulator,OS=15.2,name=iPhone 13 Pro |
30 |
| - platform: iOS Simulator |
31 |
| - workspace: LDKFramework.xcworkspace |
32 |
| - - scheme: LDKFramework_Mac |
33 |
| - destination: generic/platform=OS X |
34 |
| - platform: OS X |
35 |
| - workspace: LDKFramework.xcworkspace |
36 |
| - - scheme: LDKFramework |
37 |
| - destination: platform=macOS,variant=Mac Catalyst,arch=x86_64 |
38 |
| - platform: Mac Catalyst |
39 |
| - workspace: LDKFramework.xcworkspace |
40 |
| - env: |
41 |
| - DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer |
42 |
| - LDK_C_BINDINGS_BASE: /home/runner/work/ldk-swift/ldk-swift/ci/ldk-c-bindings |
43 |
| - LDK_C_BINDINGS_BINARY_DIRECTORY: /home/runner/work/ldk-swift/ldk-swift/xcode/LDK |
44 |
| - steps: |
45 |
| - - name: Configure Xcode |
46 |
| - uses: maxim-lobanov/setup-xcode@v1 |
47 |
| - with: |
48 |
| - xcode-version: latest |
49 |
| - - name: Checkout |
50 |
| - uses: actions/checkout@v2 |
51 |
| - - name: Install Dependencies |
52 |
| - uses: ./.github/actions/install-dependencies |
53 |
| - - name: Build |
54 |
| - id: build |
55 |
| - uses: ./.github/actions/build-for-testing |
56 |
| - with: |
57 |
| - workspace: ${{ matrix.configuration['workspace'] }} |
58 |
| - scheme: ${{ matrix.configuration['scheme'] }} |
59 |
| - destination: ${{ matrix.configuration['destination'] }} |
| 17 | + build: |
| 18 | + name: Build Framework (${{ matrix.configuration['platform'] }}) |
| 19 | + runs-on: macos-12 |
| 20 | + strategy: |
| 21 | + fail-fast: false |
| 22 | + matrix: |
| 23 | + configuration: |
| 24 | + - scheme: LDKFramework |
| 25 | + destination: generic/platform=iOS |
| 26 | + platform: iOS |
| 27 | + workspace: LDKFramework.xcworkspace |
| 28 | + - scheme: LDKFramework |
| 29 | + destination: platform=iOS Simulator,OS=15.2,name=iPhone 13 Pro |
| 30 | + platform: iOS Simulator |
| 31 | + workspace: LDKFramework.xcworkspace |
| 32 | + - scheme: LDKFramework_Mac |
| 33 | + destination: generic/platform=OS X |
| 34 | + platform: OS X |
| 35 | + workspace: LDKFramework.xcworkspace |
| 36 | + - scheme: LDKFramework |
| 37 | + destination: platform=macOS,variant=Mac Catalyst,arch=x86_64 |
| 38 | + platform: Mac Catalyst |
| 39 | + workspace: LDKFramework.xcworkspace |
| 40 | + env: |
| 41 | + DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer |
| 42 | + LDK_C_BINDINGS_BASE: /Users/runner/work/ldk-swift/ldk-swift/bindings/artifacts/ldk-c-bindings |
| 43 | + LDK_C_BINDINGS_BINARY_DIRECTORY: /Users/runner/work/ldk-swift/ldk-swift/bindings/artifacts/bin |
| 44 | + steps: |
| 45 | + - name: Configure Xcode |
| 46 | + uses: maxim-lobanov/setup-xcode@v1 |
| 47 | + with: |
| 48 | + xcode-version: latest |
| 49 | + - name: Checkout |
| 50 | + uses: actions/checkout@v2 |
| 51 | + - name: Install Dependencies |
| 52 | + uses: ./.github/actions/install-dependencies |
| 53 | + - name: Build |
| 54 | + id: build |
| 55 | + uses: ./.github/actions/build-for-testing |
| 56 | + with: |
| 57 | + workspace: ${{ matrix.configuration['workspace'] }} |
| 58 | + scheme: ${{ matrix.configuration['scheme'] }} |
| 59 | + destination: ${{ matrix.configuration['destination'] }} |
0 commit comments