ci and clippy fixes #6
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: Rust Build and Clippy Check | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build_all: | |
name: Rust project - latest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install libssl-dev openssl -y | |
- name: Early Build | |
run: cargo build --workspace --tests | |
- name: Check Rust Code Format | |
run: cargo fmt -- --check | |
- name: Run Rust Clippy | |
run: cargo clippy --all-targets -- -D warnings |