-
-
Notifications
You must be signed in to change notification settings - Fork 49
51 lines (44 loc) · 1.22 KB
/
ci.yml
File metadata and controls
51 lines (44 loc) · 1.22 KB
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
42
43
44
45
46
47
48
49
50
51
name: CI
on:
pull_request:
push:
branches: [main, master]
workflow_dispatch:
env:
RUSTFLAGS: "-C debuginfo=0 -D warnings"
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
include:
- os: macos-latest
MACOS: true
- os: windows-latest
- os: ubuntu-latest
env:
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@v6
- name: Install Linux deps alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
if: runner.os == 'linux'
- name: install stable toolchain
id: install_toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt clippy
- name: rustfmt & clippy
run: |
cargo clippy --workspace
cargo fmt --all -- --check
if: matrix.os == 'ubuntu-latest'
- name: run tests
run: cargo test --workspace --all-targets --all-features
env:
MACOS: ${{ matrix.MACOS }} # Used by some tests