-
Notifications
You must be signed in to change notification settings - Fork 114
41 lines (37 loc) · 1.32 KB
/
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
name: Continuous integration
on:
push:
branches: [master]
pull_request:
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install toolchain
run: rustup toolchain install 1.80.1 --component rustfmt
- name: fmt
run: cargo fmt --all --check
clippy:
name: Clippy Check
runs-on: ubuntu-24.04
steps:
- name: install system dependencies
run: sudo apt-get update && sudo apt-get install lld cmake libclang-dev libexpat1-dev libfontconfig-dev libfreetype-dev libpipewire-0.3-dev libpulse-dev pkg-config libxkbcommon-dev libudev-dev libinput-dev libwayland-dev
- uses: actions/checkout@v3
- name: install toolchain
run: rustup toolchain install 1.80.1 --component clippy
- name: clippy
run: cargo clippy --all-features
test:
name: Test
runs-on: ubuntu-24.04
steps:
- name: install system dependencies
run: sudo apt-get update && sudo apt-get install lld cmake libclang-dev libexpat1-dev libfontconfig-dev libfreetype-dev libpipewire-0.3-dev libpulse-dev pkg-config libxkbcommon-dev libudev-dev libinput-dev libwayland-dev
- uses: actions/checkout@v3
- name: install toolchain
run: rustup show
- name: test
run: cargo test --all-features