Skip to content

Update rust.yml

Update rust.yml #15

Workflow file for this run

name: Rust
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [1.66.0, stable, beta, nightly]
steps:
- uses: actions/checkout@v3
- name: Check fmt
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all --all-features -- --deny warnings
- name: Build
run: cargo build --verbose
- name: Doc tests
run: cargo test --doc
- name: Run tests
run: cargo test --verbose