name: Rust
on:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
# Only test on ubuntu for the time being, the other are unnecessary
# os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Clippy
run: cargo clippy
- name: Build
run: cargo build --verbose
- name: Tests
run: cargo test --verbose