Skip to content

Commit 3144f45

Browse files
committed
Rebuild fresh binary for release
1 parent df31b23 commit 3144f45

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/swift.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -94,26 +94,28 @@ jobs:
9494
- name: Verify generated output recency
9595
run: |
9696
git diff --exit-code out/ ':(exclude)out/VersionDescriptor.swift'
97-
- name: Build Swift bindings package without address sanitizer
97+
- name: Prepare rust binaries
9898
run: |
99-
cd ci/LDKSwift
10099
env
101-
# remove target output
102-
# rm -rf ${{ github.workspace }}/ci/ldk-c-bindings/lightning-c-bindings/target
100+
pushd ${{ github.workspace }}/ci/ldk-c-bindings/lightning-c-bindings
101+
cargo clean
102+
cargo build --release --features std
103103
104104
# debug the target
105-
find "${{ github.workspace }}/ci/ldk-c-bindings/lightning-c-bindings/target"
106-
107-
# build the actual swift binary
105+
find ./target
106+
- name: Build Swift bindings package without address sanitizer
107+
run: |
108+
env
109+
cd ci/LDKSwift
108110
../../swift-5.7.2-RELEASE-ubuntu22.04/usr/bin/swift build
109111
env:
110112
LDK_C_BINDINGS_BASE: ${{ github.workspace }}/ci/ldk-c-bindings
111113
LDK_C_BINDINGS_BINARY_DIRECTORY: ${{ github.workspace }}/ci/ldk-c-bindings/lightning-c-bindings/target/release
112114
RUST_BACKTRACE: 1
113115
- name: Test Swift bindings package without address sanitizer
114116
run: |
115-
cd ci/LDKSwift
116117
env
118+
cd ci/LDKSwift
117119
../../swift-5.7.2-RELEASE-ubuntu22.04/usr/bin/swift test -v
118120
env:
119121
LDK_C_BINDINGS_BASE: ${{ github.workspace }}/ci/ldk-c-bindings

0 commit comments

Comments
 (0)