-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 961 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
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
#
on: [push, pull_request]
name: CI
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Install deps
run: sudo apt-get install -y libxcursor-dev libasound2-dev libjack-dev libx11-xcb-dev libxcb-dri2-0-dev libxcb-icccm4-dev libxcb-ewmh-dev
- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy
override: true
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Run | check
run: cargo check --workspace
- name: Run | test
run: cargo test --workspace
- name: Run | fmt
run: cargo fmt --all -- --check
- name: Run | clippy
run: cargo clippy --workspace -- -D warnings