File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,12 @@ jobs:
17
17
include :
18
18
- toolchain : stable
19
19
build-net-tokio : true
20
- build-bindings : true
21
20
- toolchain : beta
22
21
build-net-tokio : true
23
- build-bindings : true
24
22
- toolchain : 1.39.0
25
23
build-net-tokio : true
26
- build-bindings : true
27
24
coverage : true
28
25
- toolchain : 1.34.2
29
- build-bindings : true
30
26
runs-on : ubuntu-latest
31
27
steps :
32
28
- name : Checkout source code
43
39
- name : Build on Rust ${{ matrix.toolchain }}
44
40
if : " ! matrix.build-net-tokio"
45
41
run : RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always -p lightning
46
- - name : Build bindings on Rust ${{ matrix.toolchain }}
47
- if : matrix.build-bindings
48
- run : RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always -p lightning-c-bindings
49
42
- name : Test on Rust ${{ matrix.toolchain }} with net-tokio
50
43
if : matrix.build-net-tokio
51
44
run : RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always
@@ -127,6 +120,8 @@ jobs:
127
120
apt-get -y install cargo valgrind lld git g++ clang
128
121
- name : Checkout source code
129
122
uses : actions/checkout@v2
123
+ - name : Sanity test bindings
124
+ run : cd lightning-c-bindings && cargo check && cd ..
130
125
- name : Install cbindgen
131
126
run : cargo install --force cbindgen
132
127
- name : Rebuild bindings, and check the sample app builds + links
Original file line number Diff line number Diff line change 3
3
members = [
4
4
" lightning" ,
5
5
" lightning-net-tokio" ,
6
- " lightning-c-bindings" ,
7
6
]
8
7
9
8
# Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it
Original file line number Diff line number Diff line change @@ -17,3 +17,8 @@ crate-type = ["staticlib"
17
17
[dependencies ]
18
18
bitcoin = " 0.24"
19
19
lightning = { version = " 0.0.11" , path = " ../lightning" }
20
+
21
+ # We eventually want to join the root workspace, but for now, the bindings generation is
22
+ # a bit brittle and we don't want to hold up other developers from making changes just
23
+ # because they break the bindings
24
+ [workspace ]
You can’t perform that action at this time.
0 commit comments