Skip to content

chore: update repository templates, license, contributing #297

chore: update repository templates, license, contributing

chore: update repository templates, license, contributing #297

Workflow file for this run

name: Rust Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Check Format
run: cargo fmt -- --check
clippy:
strategy:
matrix:
features:
- single_precision
- utils
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Run Clippy
run: cargo clippy --features ${{ matrix.features }} -- -D warnings
tests:
strategy:
matrix:
features:
- single_precision
- utils
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Run Tests
run: cargo test --features ${{ matrix.features }} --all