File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ branches : [master]
8+
9+ concurrency :
10+ group : ci-${{ github.ref }}
11+ cancel-in-progress : true
12+
13+ env :
14+ CARGO_TERM_COLOR : always
15+
16+ jobs :
17+ fmt :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v4
21+
22+ - name : Install Rust toolchain
23+ uses : dtolnay/rust-toolchain@stable
24+ with :
25+ components : rustfmt
26+
27+ - name : Check formatting
28+ run : cargo fmt --all --check
29+
30+ clippy :
31+ runs-on : ubuntu-latest
32+ steps :
33+ - uses : actions/checkout@v4
34+
35+ - name : Install system dependencies
36+ run : |
37+ sudo apt-get update
38+ sudo apt-get install -y --no-install-recommends \
39+ pkg-config \
40+ libasound2-dev \
41+ libudev-dev \
42+ libwayland-dev \
43+ libxkbcommon-dev \
44+ libx11-dev \
45+ libxcursor-dev \
46+ libxrandr-dev \
47+ libxi-dev \
48+ libgl1-mesa-dev
49+
50+ - name : Install Rust toolchain
51+ uses : dtolnay/rust-toolchain@stable
52+ with :
53+ components : clippy
54+
55+ - name : Cache cargo
56+ uses : Swatinem/rust-cache@v2
57+
58+ - name : Clippy
59+ run : cargo clippy --workspace --locked --all-targets -- -D warnings
60+
61+ build-and-test :
62+ runs-on : ubuntu-latest
63+ steps :
64+ - uses : actions/checkout@v4
65+
66+ - name : Install system dependencies
67+ run : |
68+ sudo apt-get update
69+ sudo apt-get install -y --no-install-recommends \
70+ pkg-config \
71+ libasound2-dev \
72+ libudev-dev \
73+ libwayland-dev \
74+ libxkbcommon-dev \
75+ libx11-dev \
76+ libxcursor-dev \
77+ libxrandr-dev \
78+ libxi-dev \
79+ libgl1-mesa-dev
80+
81+ - name : Install Rust toolchain
82+ uses : dtolnay/rust-toolchain@stable
83+
84+ - name : Cache cargo
85+ uses : Swatinem/rust-cache@v2
86+
87+ - name : Build
88+ run : cargo build --workspace --locked
89+
90+ - name : Test
91+ run : cargo test --workspace --locked
Original file line number Diff line number Diff line change 11[tools ]
2- node = " 25.2.1"
32rust = " 1.96.0"
You can’t perform that action at this time.
0 commit comments