-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (36 loc) · 913 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
42
name: CI
on:
pull_request: {}
push:
branches:
- main
jobs:
ci:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
components: clippy
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libpulse-dev libopus-dev libmp3lame-dev
- name: build
run: cargo build
- name: lint
run: cargo clippy -- -D warnings
- name: rustfmt
run: cargo fmt -- --check
- name: test
run: cargo test
- name: doc
run: cargo doc
nix:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: /nix
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: samueldr/action-nix-build@master