Make API safer #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy, rustfmt | |
- name: Install alsa and udev | |
run: sudo apt-get update -yq; sudo apt-get install -yq --no-install-recommends libasound2-dev libudev-dev | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2.6.0 | |
- name: fmt | |
run: cargo fmt --all -- --check | |
- name: build | |
run: cargo build | |
- name: clippy | |
run: cargo clippy -- -D warnings | |
- name: Run tests | |
run: cargo test --verbose |