Skip to content

Reexport structs and unions filters module (#18) #43

Reexport structs and unions filters module (#18)

Reexport structs and unions filters module (#18) #43

Workflow file for this run

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-2019
- windows-2022
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