Skip to content

Commit 300f0b3

Browse files
committed
f: Rebuild fresh binary for release
1 parent 3144f45 commit 300f0b3

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/swift.yml

+13-9
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ jobs:
6161
LDK_C_BINDINGS_BASE: ${{ github.workspace }}/ci/ldk-c-bindings
6262
H_FILE_OUTPUT_DIRECTORY: ${{ github.workspace }}/ci/LDKSwift/Sources/LDKHeaders/include
6363
C_FILE_OUTPUT_DIRECTORY: ${{ github.workspace }}/ci/LDKSwift/Sources/LDKHeaders
64+
- name: Prepare rust binaries
65+
run: |
66+
env
67+
pushd ${{ github.workspace }}/ci/ldk-c-bindings/lightning-c-bindings
68+
cargo clean
69+
cargo build --release --features std
70+
71+
# debug the target
72+
find ./target
73+
env:
74+
RUST_BACKTRACE: 1
75+
RUSTFLAGS: --cfg=c_bindings -C embed-bitcode=yes -C lto
76+
CARGO_PROFILE_RELEASE_LTO: true
6477
- name: Install Swift Toolchain
6578
run: |
6679
curl --verbose -L -o swift-5.7.2-RELEASE-ubuntu22.04.tar.gz https://download.swift.org/swift-5.7.2-release/ubuntu2204/swift-5.7.2-RELEASE/swift-5.7.2-RELEASE-ubuntu22.04.tar.gz
@@ -94,15 +107,6 @@ jobs:
94107
- name: Verify generated output recency
95108
run: |
96109
git diff --exit-code out/ ':(exclude)out/VersionDescriptor.swift'
97-
- name: Prepare rust binaries
98-
run: |
99-
env
100-
pushd ${{ github.workspace }}/ci/ldk-c-bindings/lightning-c-bindings
101-
cargo clean
102-
cargo build --release --features std
103-
104-
# debug the target
105-
find ./target
106110
- name: Build Swift bindings package without address sanitizer
107111
run: |
108112
env

0 commit comments

Comments
 (0)