chore: fix clippy pipeline

This commit is contained in:
Gabriele Musco 2024-07-25 10:06:28 +02:00
commit 33d906f50d

View file

@ -18,16 +18,19 @@ cargo:fmtcheck:
- cargo fmt --all -- --check
cargo:clippy:
image: "rust:slim"
stage: check
variables:
RUSTFLAGS: "-Dwarnings"
script:
- cp src/constants.rs.in src/constants.rs
- apt-get update
- apt-get install libgtk-4-dev libadwaita-1-dev libssl-dev libjxl-dev libvte-2.91-gtk4-dev meson ninja-build git desktop-file-utils gettext file libusb-dev libusb-1.0-0-dev curl -y
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/rustup.sh
- chmod +x /tmp/rustup.sh
- /tmp/rustup.sh -y
- source "$HOME/.cargo/env"
- rustup component add clippy
- rustc -Vv && cargo -Vv
- cp src/constants.rs.in src/constants.rs
- cargo clippy --version
- cargo clippy --all-targets --all-features