Update Cargo.toml #5
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 | |
jobs: | |
codestyle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Rust | |
uses: hecrj/setup-rust-action@v1 | |
with: | |
components: rustfmt | |
rust-version: stable | |
- uses: actions/checkout@v2 | |
- run: cargo fmt --all -- --check | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Rust | |
uses: hecrj/setup-rust-action@v1 | |
with: | |
components: clippy | |
- run: sudo apt-get install protobuf-compiler | |
- uses: actions/checkout@v2 | |
- run: cargo clippy --all-targets --all-features -- -D clippy::all | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Rust | |
uses: hecrj/setup-rust-action@v1 | |
- run: sudo apt-get install protobuf-compiler | |
- uses: actions/checkout@v2 | |
- run: cargo check --all | |