fix: Fixed build #5
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: Build and Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: rust-toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- uses: actions/checkout@v3 | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
- name: Install Clippy | |
run: rustup component add clippy | |
- name: Run Clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: Run check | |
run: cargo check | |
- uses: cargo-bins/cargo-binstall@main | |
- name: "Install `cargo-deny`" | |
run: "cargo binstall -y cargo-deny" | |
- name: "`cargo deny`" | |
run: cargo deny check | |
- name: Run check | |
run: cargo test |