name: CI
on:
push:
pull_request:
jobs:
test:
name: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Check format
run: cargo fmt --check
- name: Check
run: cargo check --all-targets --all-features
- name: Lint
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Test
run: sudo env "PATH=$PATH" cargo test --all-targets --all-features
- name: Build release
run: cargo build --release --all-features