-
-
Notifications
You must be signed in to change notification settings - Fork 1k
47 lines (38 loc) · 1.15 KB
/
quality.yml
File metadata and controls
47 lines (38 loc) · 1.15 KB
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
43
44
45
46
47
name: 🧹 Quality
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 2'
env:
CARGO_TERM_COLOR: always
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Gtk 4
run: sudo apt update || true; sudo apt install -y libgtk-4-dev libraw-dev libheif-dev libavif-dev libdav1d-dev libasound2-dev -y
- name: Setup rust version
run: |
rustup default 1.92.0
rustup component add rustfmt
rustup component add clippy
- name: Disable optimizations
run: |
sed -i 's/^\(\[profile\.dev\.package.*\)/#\1/' Cargo.toml
sed -i 's|^opt-level = 3 # OPT PACKAGES|#opt-level = 3 # OPT PACKAGES|' Cargo.toml
- name: Check the format
run: cargo fmt --all -- --check
- name: Run clippy
run: |
cargo clippy --all-targets --all-features -- -D warnings
cargo clippy --all-targets -- -D warnings
- name: Check tools
run: |
cd misc/test_image_perf
cargo check
cd ../../
cd misc/test_read_perf
cargo check
cd ../../