Fix clippy::all lints in tests/examples to unblock 0.7.0 release (#40) #90
This file contains hidden or 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: build | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| RUSTFLAGS: -Dwarnings | |
| CARGO_NET_GIT_FETCH_WITH_CLI: true | |
| jobs: | |
| draft-release: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| tag_name: ${{ steps.release_drafter.outputs.tag_name }} | |
| steps: | |
| - uses: release-drafter/release-drafter@v5 | |
| id: release_drafter | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.NDISAPI_PAT_TOKEN }} | |
| build: | |
| name: Build | |
| strategy: | |
| matrix: | |
| rust: [stable, nightly] | |
| runs-on: | |
| - windows-2022 | |
| - windows-2025 # replaced 2019 with 2025 | |
| runs-on: ${{ matrix.runs-on }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/.crates.toml | |
| ~/.cargo/.crates2.json | |
| ~/.cargo/.package-cache | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Setup toolchain | |
| run: | | |
| rustup update --no-self-update ${{ matrix.rust }} | |
| rustup default ${{ matrix.rust }} | |
| rustup component add clippy | |
| - name: Run cargo static analysis checks | |
| run: | | |
| cargo check | |
| cargo clippy -- -D clippy::all | |
| cargo test | |
| - name: Build crate | |
| run: | | |
| cargo publish --dry-run |