Skip to content

.github/workflows/rust-ci.yml #97

.github/workflows/rust-ci.yml

.github/workflows/rust-ci.yml #97

Workflow file for this run

on:
workflow_dispatch:
push:
schedule:
- cron: '1 1 1 * *'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt, clippy
- name: format
run: cargo fmt -- --check
- name: clippy
run: cargo clippy --all-features --all-targets -- --deny warnings
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
toolchain: [stable, beta, nightly]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run clippy
run: cargo clippy --all-targets