name: Build
on: [ push, pull_request ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- nightly
- 1.56.1 steps:
- uses: actions/checkout@v2
- run: sudo apt update && sudo apt install libasound2-dev libxkbcommon-dev -y
- run: cargo build --all-targets
- run: cargo test
style_checks:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v2
- run: sudo apt update && sudo apt install libasound2-dev libxkbcommon-dev -y
- name: Rustfmt (checks all source code/all features)
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --all-targets
- name: Rustdoc (default feature)
run: cargo doc