Skip to content

GH Actions changes #173

GH Actions changes

GH Actions changes #173

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
name: Continuous integration
jobs:
# Combine checking and testing into single step since they both require compiling
check-test:
name: Check & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
if: runner.os == 'linux'
- run: cargo check
- run: cargo check --examples
- run: cargo check --tests
- run: cargo test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: rustup component add clippy
- run: cargo clippy -- -D warnings