fix warnings #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
matrix: | |
channel: | |
- stable | |
- beta | |
- nightly | |
features: | |
- "--features=''" | |
- "--all-features" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust Toolchain | |
run: rustup default ${{ matrix.channel }} && rustup component add clippy && cargo install cargo-llvm-cov | |
- name: Build | |
run: RUSTFLAGS="-Dwarnings" cargo build --verbose --no-default-features ${{ matrix.features }} | |
- name: Run tests | |
run: RUSTFLAGS="-Dwarnings" cargo llvm-cov test --text --verbose --no-default-features ${{ matrix.features }} | |
- name: Build docs | |
run: RUSTDOCFLAGS="-Dwarnings" cargo doc --verbose --no-default-features --no-deps ${{ matrix.features }} | |
- name: Run clippy | |
run: RUSTFLAGS="-Dwarnings" cargo clippy --verbose --no-default-features ${{ matrix.features }} | |