summaryrefslogtreecommitdiff
path: root/.woodpecker.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.woodpecker.yaml')
-rw-r--r--.woodpecker.yaml42
1 files changed, 42 insertions, 0 deletions
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 ]