name: tests
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- "1.85"
- stable
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
- run: cargo fmt --check
- run: cargo build --no-default-features --verbose
- run: cargo test --no-default-features --verbose
- run: cargo build --no-default-features --verbose --release
- run: cargo test --no-default-features --verbose --release