Skip to content

update deps and cargo-dist (#29) #119

update deps and cargo-dist (#29)

update deps and cargo-dist (#29) #119

Workflow file for this run

name: Rust
on:
push:
branches: [main]
pull_request:
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CLICOLOR: 1
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
rustv: [stable, beta]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rustv }}
components: clippy, rustfmt
- uses: swatinem/rust-cache@v2
- name: Test
run: cargo test
- name: Clippy
run: cargo clippy -- -Dwarnings
- name: fmt
run: cargo fmt --check