From ec4658ac8e3edb850f1370e28f5198099b6b6302 Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Sun, 7 Jul 2024 13:04:13 +0200 Subject: [PATCH] chore(ci): move clippy to build step --- .woodpecker/build.yml | 7 +++++++ .woodpecker/clippy.yml | 13 ------------- 2 files changed, 7 insertions(+), 13 deletions(-) delete mode 100644 .woodpecker/clippy.yml diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 4d5367b..d4b46c9 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -27,3 +27,10 @@ steps: # Binaries, even debug ones, should be statically compiled - '[ "$(readelf -d target/debug/rieterd | grep NEEDED | wc -l)" = 0 ]' + clippy: + image: 'rust:1.79-alpine3.19' + environment: + - 'LIBARCHIVE_STATIC=1' + commands: + - rustup component add clippy + - cargo clippy -- --no-deps -Dwarnings diff --git a/.woodpecker/clippy.yml b/.woodpecker/clippy.yml deleted file mode 100644 index 2d74a26..0000000 --- a/.woodpecker/clippy.yml +++ /dev/null @@ -1,13 +0,0 @@ -platform: 'linux/amd64' - -when: - branch: - exclude: [main] - event: push - -steps: - clippy: - image: 'rust:1.79-alpine3.19' - commands: - - rustup component add clippy - - cargo clippy -- --no-deps -Dwarnings