|
1 |
| -name: Xcode Builds |
| 1 | +name: Generate XCframework from parallel libldk.a builds |
2 | 2 | permissions:
|
3 | 3 | contents: read
|
4 | 4 | statuses: read
|
|
64 | 64 | path: |
|
65 | 65 | /Users/runner/work/ldk-swift/ldk-swift/bindings/bin/release/${{ matrix.configuration['human_readable_platform'] }}/libldk.a
|
66 | 66 | generate-parallel:
|
67 |
| - name: Generate XCFramework based on parallelized libldk builds |
| 67 | + name: Generate XCarchives and XCFramework based on parallelized libldk builds |
68 | 68 | needs: [ build-libldks ]
|
69 | 69 | runs-on: macos-12
|
70 | 70 | env:
|
|
89 | 89 | shell: bash
|
90 | 90 | run:
|
91 | 91 | python3 ./src/scripts/generate_xcframework.py
|
92 |
| - |
93 |
| - build: |
94 |
| - name: Build XCArchive for ${{ matrix.configuration['platform'] }} |
95 |
| - runs-on: macos-12 |
96 |
| - strategy: |
97 |
| - fail-fast: false |
98 |
| - matrix: |
99 |
| - configuration: |
100 |
| - - scheme: LDKFramework |
101 |
| - destination: generic/platform=iOS |
102 |
| - platform: iOS |
103 |
| - project: LDKFramework/LDKFramework.xcodeproj |
104 |
| - - scheme: LDKFramework |
105 |
| - destination: platform=iOS Simulator,OS=15.2,name=iPhone 13 Pro |
106 |
| - platform: iOS Simulator |
107 |
| - project: LDKFramework/LDKFramework.xcodeproj |
108 |
| - - scheme: LDKFramework |
109 |
| - destination: generic/platform=OS X |
110 |
| - platform: OS X |
111 |
| - project: LDKFramework/LDKFramework.xcodeproj |
112 |
| - - scheme: LDKFramework |
113 |
| - destination: platform=macOS,variant=Mac Catalyst,arch=x86_64 |
114 |
| - platform: Mac Catalyst |
115 |
| - project: LDKFramework/LDKFramework.xcodeproj |
116 |
| - env: |
117 |
| - DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer |
118 |
| - LDK_C_BINDINGS_BASE: /Users/runner/work/ldk-swift/ldk-swift/bindings/artifacts/ldk-c-bindings |
119 |
| - LDK_C_BINDINGS_BINARY_DIRECTORY: /Users/runner/work/ldk-swift/ldk-swift/bindings/artifacts/bin |
120 |
| - steps: |
121 |
| - - name: Configure Xcode |
122 |
| - uses: maxim-lobanov/setup-xcode@v1 |
123 |
| - with: |
124 |
| - xcode-version: latest |
125 |
| - - name: Checkout |
126 |
| - uses: actions/checkout@v2 |
127 |
| - - name: Install Dependencies |
128 |
| - uses: ./.github/actions/install-dependencies |
129 |
| - - name: Build |
130 |
| - id: build |
131 |
| - uses: ./.github/actions/build-for-testing |
132 |
| - with: |
133 |
| - project: ${{ matrix.configuration['project'] }} |
134 |
| - scheme: ${{ matrix.configuration['scheme'] }} |
135 |
| - destination: ${{ matrix.configuration['destination'] }} |
136 |
| - |
137 |
| - generate-sequential: |
138 |
| - name: Generate XCFramework |
139 |
| - runs-on: macos-12 |
140 |
| - env: |
141 |
| - DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer |
142 |
| - LDK_C_BINDINGS_BASE: /Users/runner/work/ldk-swift/ldk-swift/bindings/artifacts/ldk-c-bindings |
143 |
| - steps: |
144 |
| - - name: Configure Xcode |
145 |
| - uses: maxim-lobanov/setup-xcode@v1 |
146 |
| - with: |
147 |
| - xcode-version: latest |
148 |
| - - name: Checkout |
149 |
| - uses: actions/checkout@v2 |
150 |
| - - name: Install Dependencies |
151 |
| - uses: ./.github/actions/install-dependencies |
152 |
| - - name: Generate XCFramework |
153 |
| - uses: ./.github/actions/generate-xcframework |
154 |
| - - name: Zip Xcframework (remove before merging!) |
155 |
| - run: | |
156 |
| - ditto -c -k --sequesterRsrc /Users/runner/work/ldk-swift/ldk-swift/bindings/bin/release/LDKFramework.xcframework LDKFramework.xcframework.zip |
157 |
| - - name: Upload Framework Artifact (remove before merging!) |
158 |
| - uses: actions/upload-artifact@v3 |
159 |
| - with: |
160 |
| - name: LDKFramework.xcframework.zip |
161 |
| - path: LDKFramework.xcframework.zip |
0 commit comments