Skip to content

Add example where we use a type from a third party crate #12

Add example where we use a type from a third party crate

Add example where we use a type from a third party crate #12

Workflow file for this run

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/rust-toolchain@1.82.0
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/rust-toolchain@1.82.0
- name: Run test
run: cargo test -p tests