Skip to content

Prepare v2.0.1 release #5

Prepare v2.0.1 release

Prepare v2.0.1 release #5

Workflow file for this run

name: Build
# read-only repo token
# no access to secrets
on:
push:
branches: [ master ]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
verify-build:
runs-on: ubuntu-latest
steps:
# checkout repo
- uses: actions/checkout@v3
- name: Install rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Generate Cargo.lock
run: cargo generate-lockfile
# restore cargo cache from previous runs
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
# The cache should not be shared between different workflows and jobs.
shared-key: ${{ github.workflow }}-${{ github.job }}
# check it builds
- name: Build
run: cargo build --locked --verbose --all-targets --all-features
# run tests
- name: Run tests
run: cargo test --verbose --all-features
# make sure all code has been formatted with rustfmt
- name: check rustfmt
run: cargo fmt -- --check --color always
# run clippy to verify we have no warnings
- name: cargo clippy
env:
RUSTDOCFLAGS: -D warnings
run: cargo clippy --all-targets --all-features
# check for rustdoc warnings
- name: generate and verify rustdoc
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps --document-private-items --workspace --all-features