name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
jobs:
ci:
name: on windows-latest
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: rustfmt
run: cargo fmt --all --check
- name: clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: build
run: cargo build --all-targets
- name: test
run: cargo test --all-targets
- name: doc
run: cargo doc --no-deps --all-features