-
Notifications
You must be signed in to change notification settings - Fork 16
58 lines (42 loc) · 1.14 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
linux:
runs-on: ubuntu-20.04
steps:
- name: Download apt packages
run: |
sudo apt-get update -y && sudo apt-get install -y libasound2-dev libudev-dev
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: llvm-tools-preview
- uses: actions/checkout@v4
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: cargo build --verbose
# runs cargo with defaults flags, using the default `lcov` output
- uses: Swatinem/fucov@v1
# afterwards, upload the report to codecov
- uses: codecov/codecov-action@v1
with:
directory: coverage
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --all --all-targets
- name: Run tests
run: cargo test --workspace --exclude plastic_ui --exclude plastic_ui_tui --lib