Skip to content

Commit

Permalink
Add a GitHub Actions workflow to check the cbindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Jan 15, 2025
1 parent d79674c commit 49cf43f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/cbindgen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: cbindgen
on: [push, pull_request]

jobs:
header_check:
runs-on: ubuntu-latest
name: Check cbindgen
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo install --force cbindgen
- run: bundle exec rake cbindgen
- run: git diff --no-ext-diff --ignore-submodules --exit-code

0 comments on commit 49cf43f

Please sign in to comment.