Skip to content

Commit 239d70e

Browse files
authored
Merge pull request #146 from TheBlueMatt/main
Update to LDK 0.0.121
2 parents d8656f7 + 13de6f1 commit 239d70e

File tree

975 files changed

+144085
-31567
lines changed

Some content is hidden

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

975 files changed

+144085
-31567
lines changed

.github/workflows/build.yml

+30-17
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ jobs:
4040
# Note this is a different endpoint, as we need one non-upstream commit!
4141
git clone https://github.com/lightningdevkit/rust-lightning
4242
cd rust-lightning
43-
git checkout origin/0.0.118-bindings
43+
git checkout origin/0.0.121-bindings
4444
cd ..
4545
git clone https://github.com/lightningdevkit/ldk-c-bindings
4646
cd ldk-c-bindings
47-
git checkout 0.0.118
47+
git checkout 0.0.121
4848
cd lightning-c-bindings
4949
cargo update -p memchr --precise "2.5.0" --verbose
5050
- name: Rebuild C bindings without STD
@@ -138,11 +138,11 @@ jobs:
138138
# Note this is a different endpoint, as we need one non-upstream commit!
139139
git clone https://github.com/lightningdevkit/rust-lightning
140140
cd rust-lightning
141-
git checkout origin/0.0.118-bindings
141+
git checkout origin/0.0.121-bindings
142142
cd ..
143143
git clone https://github.com/lightningdevkit/ldk-c-bindings
144144
cd ldk-c-bindings
145-
git checkout 0.0.118
145+
git checkout 0.0.121
146146
cd lightning-c-bindings
147147
cargo update -p memchr --precise "2.5.0" --verbose
148148
- name: Rebuild C bindings with STD
@@ -185,11 +185,11 @@ jobs:
185185
# Note this is a different endpoint, as we need one non-upstream commit!
186186
git clone https://github.com/lightningdevkit/rust-lightning
187187
cd rust-lightning
188-
git checkout origin/0.0.118-bindings
188+
git checkout origin/0.0.121-bindings
189189
cd ..
190190
git clone https://github.com/lightningdevkit/ldk-c-bindings
191191
cd ldk-c-bindings
192-
git checkout 0.0.118
192+
git checkout 0.0.121
193193
- name: Rebuild C bindings with STD
194194
run: |
195195
cd ldk-c-bindings
@@ -275,11 +275,11 @@ jobs:
275275
# Note this is a different endpoint, as we need one non-upstream commit!
276276
git clone https://github.com/lightningdevkit/rust-lightning
277277
cd rust-lightning
278-
git checkout origin/0.0.118-bindings
278+
git checkout origin/0.0.121-bindings
279279
cd ..
280280
git clone https://github.com/lightningdevkit/ldk-c-bindings
281281
cd ldk-c-bindings
282-
git checkout 0.0.118
282+
git checkout 0.0.121
283283
cd lightning-c-bindings
284284
cargo update -p memchr --precise "2.5.0" --verbose
285285
- name: Pin proc-macro and quote to meet MSRV
@@ -338,11 +338,11 @@ jobs:
338338
# Note this is a different endpoint, as we need one non-upstream commit!
339339
git clone https://github.com/lightningdevkit/rust-lightning
340340
cd rust-lightning
341-
git checkout origin/0.0.118-bindings
341+
git checkout origin/0.0.121-bindings
342342
cd ..
343343
git clone https://github.com/lightningdevkit/ldk-c-bindings
344344
cd ldk-c-bindings
345-
git checkout 0.0.118
345+
git checkout 0.0.121
346346
cd lightning-c-bindings
347347
cargo update -p memchr --precise "2.5.0" --verbose
348348
- name: Pin proc-macro and quote to meet MSRV
@@ -399,11 +399,20 @@ jobs:
399399
./genbindings.sh ./ldk-c-bindings/ "-I/usr/lib/jvm/java-17-openjdk-amd64/include/ -I/usr/lib/jvm/java-17-openjdk-amd64/include/linux/" false false
400400
- name: Build deterministic release jar
401401
run: ./build-release-jar.sh
402+
- uses: actions/upload-artifact@v3
403+
with:
404+
name: ldk-java.jar
405+
path: ldk-java.jar
406+
- uses: actions/upload-artifact@v3
407+
with:
408+
name: ldk-java-leaktracking.jar
409+
path: ldk-java-leaktracking.jar
402410
- name: Check latest library and jars are in bins repo
403411
run: |
404412
export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
405413
cp "ldk-java-bins/${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/"liblightningjni_Mac*.nativelib ldk-java-bins/new/
406414
cp "ldk-java-bins/${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/"LDK-release.aar ldk-java-bins/new/
415+
cp "ldk-java-bins/${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/"org.ldk.nupkg ldk-java-bins/new/
407416
cp src/main/resources/liblightningjni_Linux-amd64.nativelib ldk-java-bins/new/
408417
cp ldk-java-sources.jar ldk-java-bins/new/
409418
cp ldk-java.jar ldk-java-bins/new/
@@ -458,11 +467,11 @@ jobs:
458467
# Note this is a different endpoint, as we need one non-upstream commit!
459468
git clone https://github.com/lightningdevkit/rust-lightning
460469
cd rust-lightning
461-
git checkout origin/0.0.118-bindings
470+
git checkout origin/0.0.121-bindings
462471
cd ..
463472
git clone https://github.com/lightningdevkit/ldk-c-bindings
464473
cd ldk-c-bindings
465-
git checkout 0.0.118
474+
git checkout 0.0.121
466475
- name: Fetch MacOS SDK
467476
run: |
468477
curl -o Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz https://bitcoincore.org/depends-sources/sdks/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
@@ -551,7 +560,7 @@ jobs:
551560
android:
552561
runs-on: ubuntu-latest
553562
# Frankly, I'm not really sure why debian and ubuntu differ in the results here, they really shouldn't
554-
container: debian:bookworm
563+
container: debian:bullseye
555564
strategy:
556565
fail-fast: false
557566
steps:
@@ -595,11 +604,11 @@ jobs:
595604
# Note this is a different endpoint, as we need one non-upstream commit!
596605
git clone https://github.com/lightningdevkit/rust-lightning
597606
cd rust-lightning
598-
git checkout origin/0.0.118-bindings
607+
git checkout origin/0.0.121-bindings
599608
cd ..
600609
git clone https://github.com/lightningdevkit/ldk-c-bindings
601610
cd ldk-c-bindings
602-
git checkout 0.0.118
611+
git checkout 0.0.121
603612
cd lightning-c-bindings
604613
. $HOME/.cargo/env
605614
cargo update -p memchr --precise "2.5.0" --verbose
@@ -635,6 +644,10 @@ jobs:
635644
export ANDROID_TOOLCHAIN="$(pwd)/android-ndk-r22b/toolchains/llvm/prebuilt/linux-x86_64"
636645
export PATH="$PATH:$ANDROID_TOOLCHAIN/bin"
637646
./android-build.sh ./rust-lightning ./ldk-c-bindings/ ./ldk-java-bins/android-artifacts
647+
- uses: actions/upload-artifact@v3
648+
with:
649+
name: LDK-release.aar
650+
path: LDK-release.aar
638651
- name: Check latest library and jars are in bins repo
639652
run: |
640653
export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
@@ -671,11 +684,11 @@ jobs:
671684
# Note this is a different endpoint, as we need one non-upstream commit!
672685
git clone https://github.com/rghtningdevkit/ust-lightning
673686
cd rust-lightning
674-
git checkout origin/0.0.118-bindings
687+
git checkout origin/0.0.121-bindings
675688
cd ..
676689
git clone https://github.com/lightningdevkit/ldk-c-bindings
677690
cd ldk-c-bindings
678-
git checkout 0.0.118
691+
git checkout 0.0.121
679692
cd lightning-c-bindings
680693
cargo update -p memchr --precise "2.5.0" --verbose
681694
- name: Rebuild C bindings and check the sample app builds + links

0 commit comments

Comments
 (0)