Skip to content

Commit dba1e05

Browse files
committed
Add CI run for bindings generation (though we'll allow it to fail)
1 parent 47b2425 commit dba1e05

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,23 @@ jobs:
9494
run: cd fuzz && cargo test --verbose --color always
9595
- name: Run fuzzers
9696
run: cd fuzz && ./ci-fuzz.sh
97+
98+
check_bindings:
99+
runs-on: ubuntu-latest
100+
env:
101+
TOOLCHAIN: stable
102+
steps:
103+
- name: Checkout source code
104+
uses: actions/checkout@v2
105+
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
106+
uses: actions-rs/toolchain@v1
107+
with:
108+
toolchain: ${{ env.TOOLCHAIN }}
109+
override: true
110+
profile: minimal
111+
- name: Install cbindgen
112+
run: cargo install --force cbindgen
113+
- name: Rebuild bindings, and check the sample app builds + links
114+
run: ./genbindings.sh
115+
- name: Check that the latest bindings are in git
116+
run: [ "$(git diff)" != "" ] && exit 1

0 commit comments

Comments
 (0)