@@ -206,46 +206,6 @@ jobs:
206
206
- name : Run fuzzers
207
207
run : cd fuzz && ./ci-fuzz.sh
208
208
209
- check_bindings :
210
- runs-on : ubuntu-latest
211
- # Ubuntu's version of rustc uses its own LLVM instead of being a real native package.
212
- # This leaves us with an incompatible LLVM version when linking. Instead, use a real OS.
213
- # We further (temporarily) use Debian experimental since testing links rustc against the
214
- # brand-new llvm-10, but clang/llvm still default to LLVM 9.
215
- container : debian:experimental
216
- env :
217
- TOOLCHAIN : stable
218
- steps :
219
- - name : Install native Rust toolchain, Valgrind, and build utilitis
220
- run : |
221
- echo 'Package: llvm llvm-runtime clang lld' > /etc/apt/preferences.d/99-llvm10
222
- echo 'Pin: release n=experimental' >> /etc/apt/preferences.d/99-llvm10
223
- echo 'Pin-Priority: 995' >> /etc/apt/preferences.d/99-llvm10
224
- apt-get update
225
- apt-get -y dist-upgrade
226
- apt-get -y install cargo valgrind lld git g++ clang
227
- - name : Checkout source code
228
- uses : actions/checkout@v2
229
- - name : Sanity test bindings
230
- working-directory : lightning-c-bindings
231
- run : cargo check
232
- - name : Install cbindgen
233
- run : cargo install --force cbindgen
234
- - name : Rebuild bindings, and check the sample app builds + links
235
- run : ./genbindings.sh
236
- - name : Check that the latest bindings are in git
237
- run : |
238
- if [ "$(git diff)" != "" ]; then
239
- # cbindgen's bindings output order can be FS-dependant, so check that the lines are all the same:
240
- mv lightning-c-bindings/include/lightning.h lightning-c-bindings/include/lightning.h.new
241
- git checkout lightning-c-bindings/include/lightning.h
242
- cat lightning-c-bindings/include/lightning.h | grep -v "Generated with cbindgen:[0-9\.]*" | sort > lightning-c-bindings/include/lightning.h.sorted
243
- cat lightning-c-bindings/include/lightning.h.new | grep -v "Generated with cbindgen:[0-9\.]*" | sort > lightning-c-bindings/include/lightning.h.new.sorted
244
- diff lightning-c-bindings/include/lightning.h.sorted lightning-c-bindings/include/lightning.h.new.sorted
245
- [ "$(diff lightning-c-bindings/include/lightning.h.sorted lightning-c-bindings/include/lightning.h.new.sorted)" != "" ] && exit 2
246
- git diff --exit-code
247
- fi
248
-
249
209
linting :
250
210
runs-on : ubuntu-latest
251
211
env :
0 commit comments