-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 861 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on: [push, pull_request]
name: CI
env:
CARGO_INCREMENTAL: 0
jobs:
test:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- 1.64
steps:
- name: Install development libraries
run: sudo apt update && sudo apt install -y libasound2-dev libudev-dev
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
run: rustup toolchain add ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- name: cargo test
run: cargo test
- name: cargo test --all-features
run: cargo test --all-features
fmt:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: cargo fmt -- --check
run: cargo fmt -- --check