Skip to content

fix project

fix project #80

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt
- uses: actions-rust-lang/rustfmt@v1
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- run: cargo clippy --all-targets --all-features -- -D warnings
tests:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
toolchain:
- stable
- nightly
features:
-
- --features u128
- --features serde
- --features rocket
- --features bit
- --features bit --features serde
- --features bit --features rocket
- --features u128 --features serde
- --features u128 --features bit
- --features u128 --features bit --features serde
- --no-default-features
- --no-default-features --features byte
- --no-default-features --features byte --features serde
- --no-default-features --features byte --features rocket
- --no-default-features --features bit
- --no-default-features --features bit --features serde
- --no-default-features --features bit --features rocket
- --no-default-features --features byte --features bit
- --no-default-features --features u128
- --no-default-features --features u128 --features byte
- --no-default-features --features u128 --features byte --features serde
- --no-default-features --features u128 --features bit
- --no-default-features --features u128 --features bit --features serde
- --no-default-features --features u128 --features byte --features bit
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test ${{ matrix.features }}
- run: cargo doc ${{ matrix.features }}
MSRV:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
toolchain:
- "1.70"
features:
-
- --features u128
- --features serde
- --features rocket
- --features bit
- --features bit --features serde
- --features bit --features rocket
- --features u128 --features serde
- --features u128 --features bit
- --features u128 --features bit --features serde
- --no-default-features
- --no-default-features --features byte
- --no-default-features --features byte --features serde
- --no-default-features --features byte --features rocket
- --no-default-features --features bit
- --no-default-features --features bit --features serde
- --no-default-features --features bit --features rocket
- --no-default-features --features byte --features bit
- --no-default-features --features u128
- --no-default-features --features u128 --features byte
- --no-default-features --features u128 --features byte --features serde
- --no-default-features --features u128 --features bit
- --no-default-features --features u128 --features bit --features serde
- --no-default-features --features u128 --features byte --features bit
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --lib --bins ${{ matrix.features }}