Skip to content

Commit 631029e

Browse files
committed
add github ci
1 parent afd1e66 commit 631029e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/action.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: action
2+
on: [push, pull_request]
3+
jobs:
4+
clippy:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: dtolnay/rust-toolchain@stable
9+
with:
10+
components: clippy
11+
- run: sudo apt-get install libudev-dev libseat-dev libdisplay-info-dev
12+
- run: cargo clippy -- -D warnings
13+
fmt:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: dtolnay/rust-toolchain@stable
18+
with:
19+
components: rustfmt
20+
- run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)