Skip to content

Fen NNUE Compression #343

Fen NNUE Compression

Fen NNUE Compression #343

Workflow file for this run

name: Test
on:
- push
- pull_request
jobs:
test:
strategy:
matrix:
toolchain:
- "1.75.0" # remember to update rust-version in Cargo.toml
- "stable"
- "nightly"
flags:
- ""
- "--features variant"
- "--features alloc"
- "--features std"
- "--features alloc,variant"
- "--features std,variant"
- "--features nohash-hasher,variant"
include:
- toolchain: "nightly"
flags: "-Z minimal-versions --all-features"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --no-default-features ${{ matrix.flags }}
- run: cargo doc --no-default-features ${{ matrix.flags }}
bench:
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update && sudo apt-get install -y valgrind
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo bench
check_fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo check --manifest-path fuzz/Cargo.toml
check_no_std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: thumbv6m-none-eabi
- run: cargo check --target thumbv6m-none-eabi --no-default-features --features variant,nohash-hasher
- run: cargo check --target thumbv6m-none-eabi --no-default-features --features alloc,variant,nohash-hasher