Skip to content

Commit

Permalink
Add CI run for bindings generation (though we'll allow it to fail)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed May 11, 2020
1 parent 47b2425 commit 8a5a351
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,24 @@ jobs:
run: cd fuzz && cargo test --verbose --color always
- name: Run fuzzers
run: cd fuzz && ./ci-fuzz.sh

check_bindings:
runs-on: ubuntu-latest
env:
TOOLCHAIN: stable
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.TOOLCHAIN }}
override: true
profile: minimal
- name: Install cbindgen
run: cargo install --force cbindgen
- name: Rebuild bindings, and check the sample app builds + links
run: ./genbindings.sh
- name: Check that the latest bindings are in git
run: |
[ "$(git diff)" != "" ] && exit 1

0 comments on commit 8a5a351

Please sign in to comment.