name: Rust
on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clippy
run: cargo clippy --verbose -- -D warnings
- name: Install nightly (for rustfmt)
run: rustup toolchain install nightly --component rustfmt
- name: Format
run: cargo +nightly fmt --check
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run tests (ndarray feature)
run: cargo test --verbose --features friedrich_ndarray