-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (34 loc) · 920 Bytes
/
Check.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: Check
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
APT_PACKAGES: libatk1.0-dev libpango1.0-dev libgtk-3-dev libudev-dev libxdo-dev
jobs:
checks:
name: "Checks"
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-pc-windows-gnu
# - aarch64-pc-windows-gnu
- x86_64-apple-darwin
# - x86_64-unknown-linux-gnu
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Rust"
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
target: ${{ matrix.target }}
- name: "Dependencies"
run: sudo apt-get install -y ${{ env.APT_PACKAGES }}
- name: "Format"
run: cargo fmt -- --check
- name: "Clippy"
run: cargo clippy --target ${{ matrix.target }} -- -D warnings