Skip to content

Commit d0ed468

Browse files
committed
CI: add rust checks
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
1 parent c68c96a commit d0ed468

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/rust.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Rust tests
3+
4+
on:
5+
pull_request:
6+
push:
7+
8+
jobs:
9+
rust_tests:
10+
name: Rust checks
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- name: Clone repository
14+
uses: actions/checkout@v4
15+
- name: setup rust toolchain
16+
uses: dtolnay/rust-toolchain@1.92
17+
with:
18+
components: clippy,rustfmt
19+
- name: install cargo-hack
20+
uses: taiki-e/install-action@cargo-hack
21+
- run: cargo hack clippy --all-targets --feature-powerset --group-features hf,stt --no-deps -- -Dclippy::pedantic

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[allow(clippy::doc_markdown)]
12
pub mod built_info {
23
include!(concat!(env!("OUT_DIR"), "/built.rs"));
34
}

0 commit comments

Comments
 (0)