-
Notifications
You must be signed in to change notification settings - Fork 19
41 lines (31 loc) · 937 Bytes
/
rust.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: Rust
on:
push:
branches: [ "main" ]
paths:
- "**/*.rs"
- "**/Cargo.toml"
pull_request:
branches: [ "main" ]
paths:
- "**/*.rs"
- "**/Cargo.toml"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install libraries
run: sudo apt-get update && sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev && sudo apt-get install libudev-dev && cargo install cargo-bundle
- name: Build
run: cargo build --all --all-features
- name: Cargo check
run: cargo check --all --all-features
- name: Rustfmt
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all --all-targets --all-features
- name: Test
run: cargo test --all --all-features