-
-
Notifications
You must be signed in to change notification settings - Fork 35
37 lines (30 loc) · 1.05 KB
/
rust.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
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt update && sudo apt install jackd libjack0 libjack-dev
# This is required for the tests, but we start it earlier since it may
# take a while to initialize.
- name: Start dummy JACK server
run: jackd -r -ddummy -r44100 -p1024 &
- name: Lint (No Features)
run: cargo clippy --all-targets --no-default-features -- -D clippy::all
- name: Lint (metadata)
run: cargo clippy --all-targets --no-default-features --features metadata -- -D clippy::all
- name: Build (No Features)
run: cargo build --verbose --no-default-features
- name: Build (metadata)
run: cargo build --verbose --no-default-features --features metadata
- name: Run Tests
run: RUST_TEST_THREADS=1 cargo test --verbose --all-features