cargo install --locked --path .
- name: Checkout Rust-Lightning and LDK-C-Bindings git
run: |
+ git config --global safe.directory '*'
git config --global user.email "ldk-ci@example.com"
git config --global user.name "LDK CI"
# 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/2022-12-0.0.113-java-bindings
+ git checkout origin/2023-02-0.0.114-java-bindings
cd ..
git clone https://github.com/lightningdevkit/ldk-c-bindings
cd ldk-c-bindings
- git checkout 0.0.113
+ git checkout 0.0.114
- name: Rebuild C bindings without STD
run: |
cd ldk-c-bindings
fetch-depth: 0
- name: Install cbindgen
run: |
+ git config --global safe.directory '*'
git clone https://github.com/eqrion/cbindgen
cd cbindgen/
git checkout v0.20.0
# 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/2022-12-0.0.113-java-bindings
+ git checkout origin/2023-02-0.0.114-java-bindings
cd ..
git clone https://github.com/lightningdevkit/ldk-c-bindings
cd ldk-c-bindings
- git checkout 0.0.113
+ git checkout 0.0.114
- name: Rebuild C bindings, and check the sample app builds + links
run: |
cd ldk-c-bindings
fetch-depth: 0
- name: Install cbindgen
run: |
+ git config --global safe.directory '*'
git clone https://github.com/eqrion/cbindgen
cd cbindgen/
git checkout v0.20.0
# 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/2022-12-0.0.113-java-bindings
+ git checkout origin/2023-02-0.0.114-java-bindings
cd ..
git clone https://github.com/lightningdevkit/ldk-c-bindings
cd ldk-c-bindings
- git checkout 0.0.113
+ git checkout 0.0.114
- name: Rebuild C bindings, and check the sample app builds + links
run: |
cd ldk-c-bindings
fetch-depth: 0
- name: Install android NDK compilers
run: |
+ git config --global safe.directory '*'
curl https://dl.google.com/android/repository/android-ndk-r22b-linux-x86_64.zip > android-ndk-r22b-linux-x86_64.zip
if [ "$(sha256sum android-ndk-r22b-linux-x86_64.zip | awk '{ print $1 }')" != "ac3a0421e76f71dd330d0cd55f9d99b9ac864c4c034fc67e0d671d022d4e806b" ]; then
echo "Bad hash"
# 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/2022-12-0.0.113-java-bindings
+ git checkout origin/2023-02-0.0.114-java-bindings
cd ..
git clone https://github.com/lightningdevkit/ldk-c-bindings
cd ldk-c-bindings
- git checkout 0.0.113
+ git checkout 0.0.114
- name: Checkout Android AAR binaries and artifacts
run: |
# Gitweb only allows snapshots of folders by providing the object hash, which we have to extract:
fetch-depth: 0
- name: Fetch upstream LLVM/clang snapshot
run: |
- wget -O clang+llvm-15.0.3-x86_64-apple-darwin.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.3/clang+llvm-15.0.3-x86_64-apple-darwin.tar.xz
- if [ "$(shasum -a 256 clang+llvm-15.0.3-x86_64-apple-darwin.tar.xz | awk '{ print $1 }')" != "ac668586b2b3d068f1e43520a3ef0b1592e5dc3eff1a4a4b772e29803b428a69" ]; then
+ 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.3-x86_64-apple-darwin.tar.xz
+ 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/2022-12-0.0.113-java-bindings
+ git checkout origin/2023-02-0.0.114-java-bindings
cd ..
git clone https://github.com/lightningdevkit/ldk-c-bindings
cd ldk-c-bindings
- git checkout 0.0.113
+ git checkout 0.0.114
- name: Rebuild C bindings with upstream clang, and check the sample app builds + links
run: |
- export PATH=`pwd`/clang+llvm-15.0.3-x86_64-apple-darwin/bin:$PATH
+ 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.3-x86_64-apple-darwin/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