name: CI
on:
push:
pull_request:
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Install Linux build dependencies
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libasound2-dev libxcb1-dev
- name: Run tests
run: cargo test --workspace
- name: Run clippy
run: cargo clippy --workspace -- -D warnings
- name: Check formatting
run: cargo fmt --check