Skip to content

Commit 0b74758

Browse files
committed
Archive xcframework after all generation combination runs.
1 parent 762bfbd commit 0b74758

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.github/workflows/build-xcframework-parallel-archives.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,11 @@ jobs:
7878
python3 ./src/scripts/generate_xcframework.py
7979
env:
8080
PRESERVE_XCARCHIVES: true
81+
- name: Zip Xcframework
82+
run: |
83+
ditto -c -k --sequesterRsrc /Users/runner/work/ldk-swift/ldk-swift/bindings/bin/release/LDKFramework.xcframework LDKFramework.xcframework.zip
84+
- name: Upload Framework Artifact
85+
uses: actions/upload-artifact@v3
86+
with:
87+
name: LDKFramework.xcframework.zip
88+
path: LDKFramework.xcframework.zip

.github/workflows/build-xcframework-parallel-libldk.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: XCframework from libldks
1+
name: XCFramework from libldks
22
permissions:
33
contents: read
44
statuses: read
@@ -92,3 +92,11 @@ jobs:
9292
shell: bash
9393
run:
9494
python3 ./src/scripts/generate_xcframework.py
95+
- name: Zip Xcframework
96+
run: |
97+
ditto -c -k --sequesterRsrc /Users/runner/work/ldk-swift/ldk-swift/bindings/bin/release/LDKFramework.xcframework LDKFramework.xcframework.zip
98+
- name: Upload Framework Artifact
99+
uses: actions/upload-artifact@v3
100+
with:
101+
name: LDKFramework.xcframework.zip
102+
path: LDKFramework.xcframework.zip

.github/workflows/build-xcframework-sequential.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
generate-sequential:
18-
name: Build libldks, xcarchives, and combine into xcframework
18+
name: Build libldks, build xcarchives, and combine into xcframework
1919
runs-on: macos-12
2020
env:
2121
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer
@@ -31,3 +31,11 @@ jobs:
3131
uses: ./.github/actions/install-dependencies
3232
- name: Generate XCFramework
3333
uses: ./.github/actions/generate-xcframework
34+
- name: Zip Xcframework
35+
run: |
36+
ditto -c -k --sequesterRsrc /Users/runner/work/ldk-swift/ldk-swift/bindings/bin/release/LDKFramework.xcframework LDKFramework.xcframework.zip
37+
- name: Upload Framework Artifact
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: LDKFramework.xcframework.zip
41+
path: LDKFramework.xcframework.zip

0 commit comments

Comments
 (0)