ci: add minimal github actions workflow #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cargo clippy -- -D warnings | |
| - run: cargo test | |
| - run: cargo check | |
| - name: Header drift check | |
| run: | | |
| cargo install cbindgen --locked | |
| cbindgen --config cbindgen.toml --output /tmp/kore_check.h | |
| diff include/kore.h /tmp/kore_check.h |