Skip to content

Commit d25e28a

Browse files
authored
Merge pull request #14 from lightningdevkit/option_array_support
Support for 0.0.14
2 parents 12815eb + bf252a1 commit d25e28a

File tree

109 files changed

+8071
-2635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+8071
-2635
lines changed

.github/workflows/swift.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,36 @@ jobs:
2020
cd rust-lightning
2121
# git checkout origin/2021-03-java-bindings-base
2222
# git checkout v0.0.100
23-
git checkout 22280286ed38a4753c63c7163fb8414eb1fd3177
23+
git checkout 8966f8d3d4911e034621c6d3c3d20140d3a7e76a
2424
echo "rust-lightning commit hash:"
2525
git rev-parse HEAD
2626
cd ..
2727
# git clone https://github.com/lightningdevkit/ldk-c-bindings
2828
git clone https://github.com/TheBlueMatt/ldk-c-bindings
2929
cd ldk-c-bindings
30-
git checkout fee27c4b40d1d25609a38bb220dd64b297af929a
30+
git checkout 1bb5ae1b34aeb74009b7b4b5ebefc957cddc30a6
3131
echo "ldk-c-bindings commit hash:"
3232
git rev-parse HEAD
3333
cd ..
34+
- name: Install Swift Toolchain
35+
run: |
36+
curl -L -o swift-5.4.2-RELEASE-ubuntu20.04.tar.gz https://swift.org/builds/swift-5.4.2-release/ubuntu2004/swift-5.4.2-RELEASE/swift-5.4.2-RELEASE-ubuntu20.04.tar.gz
37+
echo "Sha sum: $(sha256sum swift-5.4.2-RELEASE-ubuntu20.04.tar.gz | awk '{ print $1 }')"
38+
if [ "$(sha256sum swift-5.4.2-RELEASE-ubuntu20.04.tar.gz | awk '{ print $1 }')" != "${EXPECTED_SWIFT_SHASUM}" ]; then
39+
echo "Bad hash"
40+
echo "Contents: \n$(cat swift-5.4.2-RELEASE-ubuntu20.04.tar.gz)"
41+
exit 1
42+
fi
43+
tar xvvf swift-5.4.2-RELEASE-ubuntu20.04.tar.gz
44+
env:
45+
EXPECTED_SWIFT_SHASUM: 86b849d9f6ba2eda4e12ea5eafaa0748bffcd6272466b514c2b0fd4a829c63a4
3446
- name: Install native Rust toolchain, Valgrind, and build utilitis
3547
run: |
3648
sudo apt-get update
3749
sudo apt-get -y dist-upgrade
3850
sudo apt-get -y install cargo valgrind lld git g++ clang curl
3951
- name: Install cbindgen
4052
run: cargo install --force cbindgen
41-
- name: Install Swift Toolchain
42-
run: |
43-
curl https://swift.org/builds/swift-5.4.2-release/ubuntu2004/swift-5.4.2-RELEASE/swift-5.4.2-RELEASE-ubuntu20.04.tar.gz > swift-5.4.2-RELEASE-ubuntu20.04.tar.gz
44-
if [ "$(sha256sum swift-5.4.2-RELEASE-ubuntu20.04.tar.gz | awk '{ print $1 }')" != "86b849d9f6ba2eda4e12ea5eafaa0748bffcd6272466b514c2b0fd4a829c63a4" ]; then
45-
echo "Bad hash"
46-
exit 1
47-
fi
48-
tar xvvf swift-5.4.2-RELEASE-ubuntu20.04.tar.gz
4953
- name: Regenerate C bindings
5054
run: |
5155
cd ldk-c-bindings

__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
from src.sdk_generator import generate_sdk
1+
from src.sdk_generator import generate_sdk, cleanup_bindings
22

3+
cleanup_bindings()
34
generate_sdk()

0 commit comments

Comments
 (0)