cargo fmt #78
This file contains 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: build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo apt update && sudo apt install -y cmake clang-15 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: rustup component add rustfmt clippy | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo build --features cbindgen | |
- run: cargo test | |
- run: cargo fmt --all -- --check | |
- run: cargo clippy -- -D warnings |