From bfe0424217556fbb37f1129bc892c8d275ff0477 Mon Sep 17 00:00:00 2001 From: namilsk Date: Sun, 8 Mar 2026 18:19:22 +0300 Subject: Fixed build with `integrated-router` feature, CI pipelines, clippy warnings and some minor edits --- .woodpecker.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .woodpecker.yaml (limited to '.woodpecker.yaml') diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..c91eee8 --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,42 @@ +# Define the sequence of steps for the CI pipeline +steps: + build: + image: rust:1.94.0-bullseye + environment: + PKG_CONFIG_PATH: "/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig" + RUST_BACKTRACE: 1 + CARGO_TERM_COLOR: always + commands: + - rustup default stable + - apt update + - apt install -y pkg-config libgpg-error-dev libgpgme-dev libassuan-dev gnupg openssl + - cargo build --verbose --release --jobs 4 + when: + branch: main + event: [ push, pull_request ] + clippy: + image: rust:1.94.0-bullseye + environment: + PKG_CONFIG_PATH: "/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig" + RUST_BACKTRACE: 1 + CARGO_TERM_COLOR: always + commands: + - apt update + - apt install -y pkg-config libgpg-error-dev libgpgme-dev libassuan-dev gnupg openssl + - rustup component add clippy rustfmt + - cargo fmt --all + - cargo clippy --jobs 2 -- -D clippy::all # -D warnings + when: + branch: main + event: [ push, pull_request ] + +# tests: +# image: rust +# environment: +# RUST_BACKTRACE: 1 +# CARGO_TERM_COLOR: always +# commands: +# - cargo test --verbose --jobs 2 -- --test-threads=2 +# when: +# branch: main +# event: [ push, pull_request ] -- cgit v1.2.3