forked from bbc/audiowaveform
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (53 loc) · 1.59 KB
/
rust.yml
File metadata and controls
59 lines (53 loc) · 1.59 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
52
53
54
55
56
57
58
59
name: CI
on:
push:
pull_request:
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --all --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Lint workspace
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
library-matrix:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: default
command: cargo test -p audiowaveform
- name: no-default-features
command: cargo test -p audiowaveform --no-default-features
- name: decode
command: cargo test -p audiowaveform --no-default-features --features decode
- name: render
command: cargo test -p audiowaveform --no-default-features --features render
- name: wav
command: cargo test -p audiowaveform --no-default-features --features wav
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run ${{ matrix.name }}
run: ${{ matrix.command }}
workspace:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Test workspace
run: cargo test --workspace
- name: Check examples
run: cargo check --workspace --examples