-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 938 Bytes
/
checks.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
42
name: Rust Checks
on:
push:
jobs:
check-fmt:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install latest Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --check
check-clippy:
name: Check Clippy Suggestions
runs-on: ubuntu-latest
container:
image: ghcr.io/gtk-rs/gtk4-rs/gtk4:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: yum -y update && yum -y install atk-devel libadwaita-devel gtksourceview5-devel
- name: Install latest Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Check clippy
run: cargo clippy