1717 run : |
1818 apt-get update
1919 apt-get -y dist-upgrade
20- apt-get -y install cargo libstd-rust-dev-wasm32 lld git g++ clang curl node-typescript npm python3
20+ apt-get -y install cargo libstd-rust-dev-wasm32 lld git g++ clang curl node-typescript npm python3 wasi-libc
2121 echo "int main() {}" > genbindings_wasm_test_file.c
2222 clang -nostdlib -o /dev/null --target=wasm32-wasi -Wl,--no-entry genbindings_wasm_test_file.c
2323 rm genbindings_wasm_test_file.c
@@ -26,19 +26,24 @@ jobs:
2626 with :
2727 fetch-depth : 0
2828 - name : Install cbindgen
29- run : cargo install --version 0.20.0 cbindgen
29+ run : |
30+ git clone https://github.com/eqrion/cbindgen
31+ cd cbindgen/
32+ git checkout v0.20.0
33+ cargo update -p indexmap --precise "1.6.2" --verbose
34+ cargo install --locked --path .
3035 - name : Checkout Rust-Lightning and LDK-C-Bindings git
3136 run : |
3237 git config --global user.email "[email protected] " 3338 git config --global user.name "LDK CI"
3439 # Note this is a different endpoint, as we need one non-upstream commit!
3540 git clone https://git.bitcoin.ninja/rust-lightning
3641 cd rust-lightning
37- git checkout origin/2021-03- java-bindings-base
42+ git checkout origin/2022-06-108- java-bindings
3843 cd ..
3944 git clone https://github.com/lightningdevkit/ldk-c-bindings
4045 cd ldk-c-bindings
41- git checkout 0.0.106
46+ git checkout 0.0.108
4247 - name : Rebuild C bindings without STD
4348 run : |
4449 cd ldk-c-bindings
6166 export HOME=/root/ # Github actions is apparently broken
6267 export PATH=$(pwd)/$(echo node-*/bin):$PATH
6368 # npx playwright install-deps is broken so we do it manually, see https://github.com/microsoft/playwright/issues/11165
64- apt-get install -y --no-install-recommends fonts-liberation libenchant-2-2 libicu67 libjpeg62-turbo libasound2 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 libcairo2 libcups2 libdbus-1-3 libdrm2 libegl1 libgbm1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxdamage1 libxext6 libxfixes3 libxrandr2 libxshmfence1 xvfb fonts-noto-color-emoji fonts-unifont libfontconfig libfreetype6 xfonts-scalable fonts-ipafont-gothic fonts-wqy-zenhei fonts-tlwg-loma-otf ffmpeg libcairo-gobject2 libdbus-glib-1-2 libfontconfig1 libgdk-pixbuf2.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libxcb-shm0 libxcursor1 libxi6 libxrender1 libxt6 gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good libepoxy0 libevdev2 libgl1 libgles2 libgstreamer-gl1.0-0 libgstreamer1.0-0 libharfbuzz-icu0 libharfbuzz0b libhyphen0 libnotify4 libopenjp2-7 libopus0 libpng16-16 libsecret-1-0 libsoup2.4-1 libwayland-client0 libwayland-egl1 libwayland-server0 libwebp7 libwebpdemux2 libwoff1 libxkbcommon0 libxml2 libxslt1.1
69+ apt-get install -y --no-install-recommends fonts-liberation libenchant-2-2 libicu71 libjpeg62-turbo libasound2 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 libcairo2 libcups2 libdbus-1-3 libdrm2 libegl1 libgbm1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxdamage1 libxext6 libxfixes3 libxrandr2 libxshmfence1 xvfb fonts-noto-color-emoji fonts-unifont libfontconfig libfreetype6 xfonts-scalable fonts-ipafont-gothic fonts-wqy-zenhei fonts-tlwg-loma-otf ffmpeg libcairo-gobject2 libdbus-glib-1-2 libfontconfig1 libgdk-pixbuf2.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libxcb-shm0 libxcursor1 libxi6 libxrender1 libxt6 gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good libepoxy0 libevdev2 libgl1 libgles2 libgstreamer-gl1.0-0 libgstreamer1.0-0 libharfbuzz-icu0 libharfbuzz0b libhyphen0 libnotify4 libopenjp2-7 libopus0 libpng16-16 libsecret-1-0 libsoup2.4-1 libwayland-client0 libwayland-egl1 libwayland-server0 libwebp7 libwebpdemux2 libwoff1 libxkbcommon0 libxml2 libxslt1.1
6570 mkdir -p $HOME/.cache/ms-playwright # `playwright install` is too dumb to create this for us
6671 chmod -R 777 $HOME/
6772 npm i -D playwright
@@ -110,19 +115,24 @@ jobs:
110115 with :
111116 fetch-depth : 0
112117 - name : Install cbindgen
113- run : cargo install --version 0.20.0 cbindgen
118+ run : |
119+ git clone https://github.com/eqrion/cbindgen
120+ cd cbindgen/
121+ git checkout v0.20.0
122+ cargo update -p indexmap --precise "1.6.2" --verbose
123+ cargo install --locked --path .
114124 - name : Checkout Rust-Lightning and LDK-C-Bindings git
115125 run : |
116126 git config --global user.email "[email protected] " 117127 git config --global user.name "LDK CI"
118128 # Note this is a different endpoint, as we need one non-upstream commit!
119129 git clone https://git.bitcoin.ninja/rust-lightning
120130 cd rust-lightning
121- git checkout origin/2021-03- java-bindings-base
131+ git checkout origin/2022-06-108- java-bindings
122132 cd ..
123133 git clone https://github.com/lightningdevkit/ldk-c-bindings
124134 cd ldk-c-bindings
125- git checkout 0.0.106
135+ git checkout 0.0.108
126136 - name : Rebuild C bindings, and check the sample app builds + links
127137 run : |
128138 cd ldk-c-bindings
@@ -160,19 +170,24 @@ jobs:
160170 with :
161171 fetch-depth : 0
162172 - name : Install cbindgen
163- run : cargo install --version 0.20.0 cbindgen
173+ run : |
174+ git clone https://github.com/eqrion/cbindgen
175+ cd cbindgen/
176+ git checkout v0.20.0
177+ cargo update -p indexmap --precise "1.6.2" --verbose
178+ cargo install --locked --path .
164179 - name : Checkout Rust-Lightning and LDK-C-Bindings git
165180 run : |
166181 git config --global user.email "[email protected] " 167182 git config --global user.name "LDK CI"
168183 # Note this is a different endpoint, as we need one non-upstream commit!
169184 git clone https://git.bitcoin.ninja/rust-lightning
170185 cd rust-lightning
171- git checkout origin/2021-03- java-bindings-base
186+ git checkout origin/2022-06-108- java-bindings
172187 cd ..
173188 git clone https://github.com/lightningdevkit/ldk-c-bindings
174189 cd ldk-c-bindings
175- git checkout 0.0.106
190+ git checkout 0.0.108
176191 - name : Rebuild C bindings, and check the sample app builds + links
177192 run : |
178193 cd ldk-c-bindings
@@ -263,19 +278,19 @@ jobs:
263278 - name : Install cbindgen
264279 run : |
265280 . $HOME/.cargo/env
266- cargo install --version 0.20.0 cbindgen
281+ cargo install cbindgen
267282 - name : Checkout Rust-Lightning and LDK-C-Bindings git
268283 run : |
269284 git config --global user.email "[email protected] " 270285 git config --global user.name "LDK CI"
271286 # Note this is a different endpoint, as we need one non-upstream commit!
272287 git clone https://git.bitcoin.ninja/rust-lightning
273288 cd rust-lightning
274- git checkout origin/2021-03- java-bindings-base
289+ git checkout origin/2022-06-108- java-bindings
275290 cd ..
276291 git clone https://github.com/lightningdevkit/ldk-c-bindings
277292 cd ldk-c-bindings
278- git checkout 0.0.106
293+ git checkout 0.0.108
279294 - name : Checkout Android AAR binaries and artifacts
280295 run : |
281296 # Gitweb only allows snapshots of folders by providing the object hash, which we have to extract:
@@ -330,35 +345,35 @@ jobs:
330345 run : rustup target install aarch64-apple-darwin
331346 - name : Fetch upstream LLVM/clang snapshot
332347 run : |
333- wget -O clang+llvm-14.0.1 -x86_64-apple-darwin.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.1 /clang+llvm-14.0.1 -x86_64-apple-darwin.tar.xz
334- if [ "$(shasum -a 256 clang+llvm-14.0.1 -x86_64-apple-darwin.tar.xz | awk '{ print $1 }')" != "43149390e95b1cdbf1d4ef2e9d214bbb6d35858ceb2df27245868e06bc4fc44c " ]; then
348+ wget -O clang+llvm-14.0.5 -x86_64-apple-darwin.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.5 /clang+llvm-14.0.5 -x86_64-apple-darwin.tar.xz
349+ if [ "$(shasum -a 256 clang+llvm-14.0.5 -x86_64-apple-darwin.tar.xz | awk '{ print $1 }')" != "66cf1b8e00289a567b2f5f740f068b7682e27ccf048647b836d3624376a64705 " ]; then
335350 echo "Bad hash"
336351 exit 1
337352 fi
338353 - name : Unpack upstream LLVM+clang and use it by default
339354 run : |
340- tar xvvf clang+llvm-14.0.1 -x86_64-apple-darwin.tar.xz
355+ tar xvvf clang+llvm-14.0.5 -x86_64-apple-darwin.tar.xz
341356 - name : Checkout source code
342357 uses : actions/checkout@v2
343358 with :
344359 fetch-depth : 0
345360 - name : Install cbindgen
346- run : cargo install --version 0.20.0 cbindgen
361+ run : cargo install cbindgen
347362 - name : Checkout Rust-Lightning and LDK-C-Bindings git
348363 run : |
349364 git config --global user.email "[email protected] " 350365 git config --global user.name "LDK CI"
351366 # Note this is a different endpoint, as we need one non-upstream commit!
352367 git clone https://git.bitcoin.ninja/rust-lightning
353368 cd rust-lightning
354- git checkout origin/2021-03- java-bindings-base
369+ git checkout origin/2022-06-108- java-bindings
355370 cd ..
356371 git clone https://github.com/lightningdevkit/ldk-c-bindings
357372 cd ldk-c-bindings
358- git checkout 0.0.106
373+ git checkout 0.0.108
359374 - name : Rebuild C bindings with upstream clang, and check the sample app builds + links
360375 run : |
361- export PATH=`pwd`/clang+llvm-14.0.1 -x86_64-apple-darwin/bin:$PATH
376+ export PATH=`pwd`/clang+llvm-14.0.5 -x86_64-apple-darwin/bin:$PATH
362377 cd ldk-c-bindings
363378 CC=clang ./genbindings.sh ../rust-lightning true
364379 - name : Fetch OpenJDK 18
@@ -397,7 +412,7 @@ jobs:
397412 export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
398413 export JAVA_HOME=`pwd`/jdk-18.0.1.1.jdk/Contents/Home
399414 export PATH=$JAVA_HOME/bin:$PATH
400- export PATH=`pwd`/clang+llvm-14.0.1 -x86_64-apple-darwin/bin:$PATH
415+ export PATH=`pwd`/clang+llvm-14.0.5 -x86_64-apple-darwin/bin:$PATH
401416 ./genbindings.sh ./ldk-c-bindings/ "-I$JAVA_HOME/include/ -I$JAVA_HOME/include/darwin -isysroot$(xcrun --show-sdk-path)" false false
402417
403418 if [ "${{ matrix.platform }}" = "macos-11" ]; then
0 commit comments