@@ -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.117 -bindings
43+ git checkout origin/0.0.118 -bindings
4444 cd ..
4545 git clone https://github.com/lightningdevkit/ldk-c-bindings
4646 cd ldk-c-bindings
47- git checkout 0.0.117
47+ git checkout 0.0.118
4848 cd lightning-c-bindings
4949 cargo update -p memchr --precise "2.5.0" --verbose
5050 - name : Rebuild C bindings without STD
@@ -108,15 +108,15 @@ jobs:
108108 runs-on : ubuntu-latest
109109 # Ubuntu's version of rustc uses its own LLVM instead of being a real native package.
110110 # This leaves us with an incompatible LLVM version when linking. Instead, use a real OS.
111- container : debian:bullseye
111+ container : debian:bookworm
112112 strategy :
113113 fail-fast : false
114114 steps :
115115 - name : Install native Rust toolchain, Valgrind, and build utilitis
116116 run : |
117117 apt-get update
118118 apt-get -y dist-upgrade
119- apt-get -y install cargo valgrind lld git g++ clang openjdk-11 -jdk maven faketime zip unzip llvm curl
119+ apt-get -y install cargo valgrind lld git g++ clang openjdk-17 -jdk maven faketime zip unzip llvm curl
120120 - name : Checkout source code
121121 uses : actions/checkout@v2
122122 with :
@@ -136,11 +136,11 @@ jobs:
136136 # Note this is a different endpoint, as we need one non-upstream commit!
137137 git clone https://github.com/lightningdevkit/rust-lightning
138138 cd rust-lightning
139- git checkout origin/0.0.117 -bindings
139+ git checkout origin/0.0.118 -bindings
140140 cd ..
141141 git clone https://github.com/lightningdevkit/ldk-c-bindings
142142 cd ldk-c-bindings
143- git checkout 0.0.117
143+ git checkout 0.0.118
144144 cd lightning-c-bindings
145145 cargo update -p memchr --precise "2.5.0" --verbose
146146 - name : Pin proc-macro and quote to meet MSRV
@@ -153,15 +153,15 @@ jobs:
153153 cd ldk-c-bindings
154154 ./genbindings.sh ../rust-lightning true
155155 - name : Build Java Debug Bindings
156- run : ./genbindings.sh ./ldk-c-bindings/ "-I/usr/lib/jvm/java-11 -openjdk-amd64/include/ -I/usr/lib/jvm/java-11 -openjdk-amd64/include/linux/" true false
156+ run : ./genbindings.sh ./ldk-c-bindings/ "-I/usr/lib/jvm/java-17 -openjdk-amd64/include/ -I/usr/lib/jvm/java-17 -openjdk-amd64/include/linux/" true false
157157 - name : Run Java Tests against Debug Bindings
158158 run : |
159159 mv liblightningjni_debug_Linux-amd64.so liblightningjni.so
160160 export ASAN_OPTIONS=detect_leaks=0
161- LD_PRELOAD=/usr/lib/llvm-11 /lib/clang/11 .0.1 /lib/linux/libclang_rt.asan-x86_64.so LD_LIBRARY_PATH=. mvn test
161+ LD_PRELOAD=/usr/lib/llvm-14 /lib/clang/14 .0.6 /lib/linux/libclang_rt.asan-x86_64.so LD_LIBRARY_PATH=. mvn test
162162 - name : Build Java Release Bindings
163163 run : |
164- ./genbindings.sh ./ldk-c-bindings/ "-I/usr/lib/jvm/java-11 -openjdk-amd64/include/ -I/usr/lib/jvm/java-11 -openjdk-amd64/include/linux/" false false
164+ ./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
165165 - name : Check latest headers are in git
166166 run : |
167167 git checkout pom.xml
@@ -171,15 +171,15 @@ jobs:
171171 runs-on : ubuntu-latest
172172 # Ubuntu's version of rustc uses its own LLVM instead of being a real native package.
173173 # This leaves us with an incompatible LLVM version when linking. Instead, use a real OS.
174- container : debian:bullseye
174+ container : debian:bookworm
175175 strategy :
176176 fail-fast : false
177177 steps :
178178 - name : Install native Rust toolchain, Valgrind, and build utilitis
179179 run : |
180180 apt-get update
181181 apt-get -y dist-upgrade
182- apt-get -y install cargo valgrind lld git g++ clang openjdk-11 -jdk maven faketime zip unzip llvm curl
182+ apt-get -y install cargo valgrind lld git g++ clang openjdk-17 -jdk maven faketime zip unzip llvm curl
183183 - name : Checkout source code
184184 uses : actions/checkout@v2
185185 with :
@@ -199,11 +199,11 @@ jobs:
199199 # Note this is a different endpoint, as we need one non-upstream commit!
200200 git clone https://github.com/lightningdevkit/rust-lightning
201201 cd rust-lightning
202- git checkout origin/0.0.117 -bindings
202+ git checkout origin/0.0.118 -bindings
203203 cd ..
204204 git clone https://github.com/lightningdevkit/ldk-c-bindings
205205 cd ldk-c-bindings
206- git checkout 0.0.117
206+ git checkout 0.0.118
207207 cd lightning-c-bindings
208208 cargo update -p memchr --precise "2.5.0" --verbose
209209 - name : Pin proc-macro and quote to meet MSRV
@@ -238,7 +238,7 @@ jobs:
238238 - name : Build Leaktracking Java Release Bindings
239239 run : |
240240 export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
241- ./genbindings.sh ./ldk-c-bindings/ "-I/usr/lib/jvm/java-11 -openjdk-amd64/include/ -I/usr/lib/jvm/java-11 -openjdk-amd64/include/linux/" leaks false
241+ ./genbindings.sh ./ldk-c-bindings/ "-I/usr/lib/jvm/java-17 -openjdk-amd64/include/ -I/usr/lib/jvm/java-17 -openjdk-amd64/include/linux/" leaks false
242242 - name : Build deterministic release jar
243243 run : |
244244 ./build-release-jar.sh
@@ -248,30 +248,33 @@ jobs:
248248 run : |
249249 export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
250250 cp "ldk-java-bins/${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/liblightningjni_MacOSX-"{aarch64,x86_64}.nativelib src/main/resources/
251+ - name : Build Java leaktracking Bindings
252+ run : |
253+ export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
254+ ./genbindings.sh ./ldk-c-bindings/ "-I/usr/lib/jvm/java-17-openjdk-amd64/include/ -I/usr/lib/jvm/java-17-openjdk-amd64/include/linux/" leaks false
255+ mkdir ldk-java-bins/new/
256+ cp src/main/resources/liblightningjni_Linux-amd64.nativelib ldk-java-bins/new/liblightningjni_Linux-amd64-leaktracking.nativelib
251257 - name : Build Java Release Bindings
252258 run : |
253259 export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
254- ./genbindings.sh ./ldk-c-bindings/ "-I/usr/lib/jvm/java-11 -openjdk-amd64/include/ -I/usr/lib/jvm/java-11 -openjdk-amd64/include/linux/" false false
260+ ./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
255261 - name : Build deterministic release jar
256262 run : ./build-release-jar.sh
257263 - name : Check latest library and jars are in bins repo
258264 run : |
259265 export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
260- mkdir ldk-java-bins/new/
261266 cp "ldk-java-bins/${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/"liblightningjni_Mac*.nativelib ldk-java-bins/new/
262267 cp "ldk-java-bins/${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/"LDK-release.aar ldk-java-bins/new/
263268 cp src/main/resources/liblightningjni_Linux-amd64.nativelib ldk-java-bins/new/
264269 cp ldk-java-sources.jar ldk-java-bins/new/
265270 cp ldk-java.jar ldk-java-bins/new/
266271 cp ldk-java-leaktracking.jar ldk-java-bins/new/
267272 cp ldk-java-classes.jar ldk-java-bins/new/
268- cp ldk-java-javadoc.jar ldk-java-bins/new/
269273 cd ldk-java-bins
270274 rm "${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/liblightningjs.wasm" # TODO: Test this
271275 if ! diff -r "${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/" new/; then
272276 apt-get -y install diffoscope
273277 diffoscope new/ldk-java-sources.jar "${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/ldk-java-sources.jar" || echo
274- diffoscope new/ldk-java-javadoc.jar "${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/ldk-java-javadoc.jar" || echo
275278 diffoscope new/ldk-java-classes.jar "${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/ldk-java-classes.jar" || echo
276279 diffoscope new/ldk-java.jar "${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/ldk-java.jar" || echo
277280 diffoscope new/ldk-java-leaktracking.jar "${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/ldk-java-leaktracking.jar" || echo
@@ -316,11 +319,11 @@ jobs:
316319 # Note this is a different endpoint, as we need one non-upstream commit!
317320 git clone https://github.com/lightningdevkit/rust-lightning
318321 cd rust-lightning
319- git checkout origin/0.0.117 -bindings
322+ git checkout origin/0.0.118 -bindings
320323 cd ..
321324 git clone https://github.com/lightningdevkit/ldk-c-bindings
322325 cd ldk-c-bindings
323- git checkout 0.0.117
326+ git checkout 0.0.118
324327 - name : Fetch MacOS SDK
325328 run : |
326329 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
@@ -409,15 +412,15 @@ jobs:
409412 android :
410413 runs-on : ubuntu-latest
411414 # Frankly, I'm not really sure why debian and ubuntu differ in the results here, they really shouldn't
412- container : debian:bullseye
415+ container : debian:bookworm
413416 strategy :
414417 fail-fast : false
415418 steps :
416419 - name : Install rust targets
417420 run : |
418421 apt-get update
419422 apt-get -y dist-upgrade
420- apt-get -y install git g++ clang faketime zip unzip curl openjdk-11 -jdk
423+ apt-get -y install git g++ clang faketime zip unzip curl openjdk-17 -jdk
421424 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
422425 chmod +x ./rustup.sh
423426 ./rustup.sh -y
@@ -453,11 +456,11 @@ jobs:
453456 # Note this is a different endpoint, as we need one non-upstream commit!
454457 git clone https://github.com/lightningdevkit/rust-lightning
455458 cd rust-lightning
456- git checkout origin/0.0.117 -bindings
459+ git checkout origin/0.0.118 -bindings
457460 cd ..
458461 git clone https://github.com/lightningdevkit/ldk-c-bindings
459462 cd ldk-c-bindings
460- git checkout 0.0.117
463+ git checkout 0.0.118
461464 cd lightning-c-bindings
462465 . $HOME/.cargo/env
463466 cargo update -p memchr --precise "2.5.0" --verbose
@@ -529,11 +532,11 @@ jobs:
529532 # Note this is a different endpoint, as we need one non-upstream commit!
530533 git clone https://github.com/rghtningdevkit/ust-lightning
531534 cd rust-lightning
532- git checkout origin/0.0.117 -bindings
535+ git checkout origin/0.0.118 -bindings
533536 cd ..
534537 git clone https://github.com/lightningdevkit/ldk-c-bindings
535538 cd ldk-c-bindings
536- git checkout 0.0.117
539+ git checkout 0.0.118
537540 cd lightning-c-bindings
538541 cargo update -p memchr --precise "2.5.0" --verbose
539542 - name : Rebuild C bindings and check the sample app builds + links
0 commit comments