Skip to content

Upgrade dependencies, update CI/CD workflows, bump to 0.2.0 #21

Upgrade dependencies, update CI/CD workflows, bump to 0.2.0

Upgrade dependencies, update CI/CD workflows, bump to 0.2.0 #21

Workflow file for this run

name: Rust CI
on:
push:
branches: master
pull_request:
branches: master
schedule:
- cron: "0 0 1 * *" # monthly
workflow_dispatch: # allow manual triggering of the action
env:
RUSTFLAGS: "-Dwarnings"
jobs:
build-crate:
name: Build and test crate/docs
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, windows, macos]
toolchain: [nightly, beta, stable]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: rust-docs
- name: Build library
run: cargo build -v --lib --no-default-features
- name: Build binary
run: cargo build -v --bins
- name: Library tests
run: cargo test --no-default-features --lib
- name: Doc tests
run: cargo test --doc --no-default-features
- name: Build docs
run: cargo doc --no-deps --no-default-features
clippy-rustfmt:
name: Clippy and rustfmt
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: clippy
run: cargo clippy
continue-on-error: true
- name: rustfmt
run: cargo fmt -- --check
continue-on-error: true