Restructuring dependencies a bit #23
Workflow file for this run
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
on: | |
merge_group: | |
types: [ checks_requested ] | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
name: BuFFI CI | |
jobs: | |
rustfmt_and_clippy: | |
name: Check rustfmt style && run clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/[email protected] | |
with: | |
components: clippy, rustfmt | |
- name: Set environment variables | |
shell: bash | |
run: | | |
echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV | |
echo "RUSTDOCFLAGS=-D warnings" >> $GITHUB_ENV | |
- name: Run clippy | |
run: cargo clippy --workspace | |
- name: Run rustfmt | |
run: cargo fmt --all --check | |
basic_test: | |
name: Generate and check bindings of the basic example | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/[email protected] | |
- name: Run test | |
run: cargo test -p tests |