name: Check ✅
on:
workflow_dispatch:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2026-05-25
components: rustfmt
- name: Check Formatting
run: |
cargo +nightly-2026-05-25 fmt --all -- --check
cargo +nightly-2026-05-25 fmt --manifest-path tests/consumer/Cargo.toml -- --check
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: Default
flags: --features windmark/tokio
- name: Tokio
flags: --no-default-features --features windmark/tokio,windmark/auto-deduce-mime
- name: Async-Std
flags: --no-default-features --features windmark/async-std,windmark/auto-deduce-mime
name: Check ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.95.0
with:
components: clippy
- name: Test the Workspace and Consumers
run: cargo +1.95.0 test --workspace ${{ matrix.flags }}
- name: Lint All Targets
run: cargo +1.95.0 clippy --workspace --all-targets ${{ matrix.flags }} -- -D warnings