Skip to content

Commit 6b707c6

Browse files
authored
Merge pull request #833 from TheBlueMatt/2021-03-no-xs
Drop C bindings (which are now in a separate repo)
2 parents 05ac59c + d793a2f commit 6b707c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+8
-41392
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -206,46 +206,6 @@ jobs:
206206
- name: Run fuzzers
207207
run: cd fuzz && ./ci-fuzz.sh
208208

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-
249209
linting:
250210
runs-on: ubuntu-latest
251211
env:

c-bindings-gen/Cargo.toml

Lines changed: 0 additions & 15 deletions
This file was deleted.

c-bindings-gen/README.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)