# Note this is a different endpoint, as we need one non-upstream commit!
git clone https://git.bitcoin.ninja/rust-lightning
cd rust-lightning
- git checkout origin/2023-04-0.0.115-java-bindings
+ git checkout origin/2023-07-0.0.116-java-bindings
cd ..
git clone https://github.com/lightningdevkit/ldk-c-bindings
cd ldk-c-bindings
- git checkout 0.0.115
+ git checkout 0.0.116
- name: Rebuild C bindings without STD
run: |
cd ldk-c-bindings
# Note this is a different endpoint, as we need one non-upstream commit!
git clone https://git.bitcoin.ninja/rust-lightning
cd rust-lightning
- git checkout origin/2023-04-0.0.115-java-bindings
+ git checkout origin/2023-07-0.0.116-java-bindings
cd ..
git clone https://github.com/lightningdevkit/ldk-c-bindings
cd ldk-c-bindings
- git checkout 0.0.115
+ git checkout 0.0.116
+ - name: Pin proc-macro and quote to meet MSRV
+ run: |
+ cd ldk-c-bindings/c-bindings-gen
+ cargo update -p quote --precise "1.0.30" --verbose
+ cargo update -p proc-macro2 --precise "1.0.65" --verbose
- name: Rebuild C bindings, and check the sample app builds + links
run: |
cd ldk-c-bindings
# Note this is a different endpoint, as we need one non-upstream commit!
git clone https://git.bitcoin.ninja/rust-lightning
cd rust-lightning
- git checkout origin/2023-04-0.0.115-java-bindings
+ git checkout origin/2023-07-0.0.116-java-bindings
cd ..
git clone https://github.com/lightningdevkit/ldk-c-bindings
cd ldk-c-bindings
- git checkout 0.0.115
+ git checkout 0.0.116
+ - name: Pin proc-macro and quote to meet MSRV
+ run: |
+ cd ldk-c-bindings/c-bindings-gen
+ cargo update -p quote --precise "1.0.30" --verbose
+ cargo update -p proc-macro2 --precise "1.0.65" --verbose
- name: Rebuild C bindings, and check the sample app builds + links
run: |
cd ldk-c-bindings
cp ldk-java-classes.jar ldk-java-bins/new/
cp ldk-java-javadoc.jar ldk-java-bins/new/
cd ldk-java-bins
+ rm "${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/liblightningjs.wasm" # TODO: Test this
if ! diff -r "${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/" new/; then
apt-get -y install diffoscope
diffoscope new/ldk-java-sources.jar "${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/ldk-java-sources.jar" || echo
# Note this is a different endpoint, as we need one non-upstream commit!
git clone https://git.bitcoin.ninja/rust-lightning
cd rust-lightning
- git checkout origin/2023-04-0.0.115-java-bindings
+ git checkout origin/2023-07-0.0.116-java-bindings
cd ..
git clone https://github.com/lightningdevkit/ldk-c-bindings
cd ldk-c-bindings
- git checkout 0.0.115
+ git checkout 0.0.116
- name: Fetch MacOS SDK
run: |
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
# Note this is a different endpoint, as we need one non-upstream commit!
git clone https://git.bitcoin.ninja/rust-lightning
cd rust-lightning
- git checkout origin/2023-04-0.0.115-java-bindings
+ git checkout origin/2023-07-0.0.116-java-bindings
cd ..
git clone https://github.com/lightningdevkit/ldk-c-bindings
cd ldk-c-bindings
- git checkout 0.0.115
+ git checkout 0.0.116
- name: Checkout Android AAR binaries and artifacts
run: |
# Gitweb only allows snapshots of folders by providing the object hash, which we have to extract:
uses: actions/checkout@v2
with:
fetch-depth: 0
- - name: Fetch upstream LLVM/clang snapshot
- run: |
- git config --global safe.directory '*'
- wget -O clang+llvm-15.0.7-x86_64-apple-darwin21.0.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/clang+llvm-15.0.7-x86_64-apple-darwin21.0.tar.xz
- if [ "$(shasum -a 256 clang+llvm-15.0.7-x86_64-apple-darwin21.0.tar.xz | awk '{ print $1 }')" != "d16b6d536364c5bec6583d12dd7e6cf841b9f508c4430d9ee886726bd9983f1c" ]; then
- echo "Bad hash"
- exit 1
- fi
- - name: Unpack upstream LLVM+clang and use it by default
- run: |
- tar xvvf clang+llvm-15.0.7-x86_64-apple-darwin21.0.tar.xz
- name: Install cbindgen
run: cargo install cbindgen
- name: Checkout Rust-Lightning and LDK-C-Bindings git
# Note this is a different endpoint, as we need one non-upstream commit!
git clone https://git.bitcoin.ninja/rust-lightning
cd rust-lightning
- git checkout origin/2023-04-0.0.115-java-bindings
+ git checkout origin/2023-07-0.0.116-java-bindings
cd ..
git clone https://github.com/lightningdevkit/ldk-c-bindings
cd ldk-c-bindings
- git checkout 0.0.115
- - name: Rebuild C bindings with upstream clang, and check the sample app builds + links
+ git checkout 0.0.116
+ - name: Rebuild C bindings and check the sample app builds + links
run: |
- export PATH=`pwd`/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin:$PATH
cd ldk-c-bindings
- export CC=clang
- export CC_x86_64_apple_darwin=clang
- export CC_aarch64_apple_darwin=clang
CC=clang ./genbindings.sh ../rust-lightning true
- name: Fetch OpenJDK 18
run: |
export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
export JAVA_HOME=`pwd`/jdk-18.0.1.1.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
- export PATH=`pwd`/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin:$PATH
./genbindings.sh ./ldk-c-bindings/ "-I$JAVA_HOME/include/ -I$JAVA_HOME/include/darwin -isysroot$(xcrun --show-sdk-path)" false false
if [ "${{ matrix.platform }}" = "macos-11" ]; then
cat src/main/resources/liblightningjni_MacOSX-aarch64.nativelib > /dev/null
fi
-
- name: Fetch Maven 3.8.4
run: |
# We don't bother using the upstream mirrors as they remove prior