From ec646381592819dcba9514678cb7982cad4c51ab Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Sat, 3 Jun 2023 15:01:17 +0200 Subject: [PATCH] chore: add woodpecker config --- .woodpecker/build.yml | 18 ++++++++++++++++++ .woodpecker/clippy.yml | 11 +++++++++++ .woodpecker/lint.yml | 11 +++++++++++ 3 files changed, 40 insertions(+) create mode 100644 .woodpecker/build.yml create mode 100644 .woodpecker/clippy.yml create mode 100644 .woodpecker/lint.yml diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml new file mode 100644 index 0000000..12a09df --- /dev/null +++ b/.woodpecker/build.yml @@ -0,0 +1,18 @@ +matrix: + ARCH: + - 'amd64' + - 'arm64' + +platform: "linux/${ARCH}" + +branches: + exclude: [main] + +pipeline: + build: + image: 'rust:1.70' + commands: + - cargo build --verbose + - cargo test --verbose + # Binaries, even debug ones, should be statically compiled + - '[ "$(readelf -d target/debug/alex | grep NEEDED | wc -l)" = 0 ]' diff --git a/.woodpecker/clippy.yml b/.woodpecker/clippy.yml new file mode 100644 index 0000000..44a4b69 --- /dev/null +++ b/.woodpecker/clippy.yml @@ -0,0 +1,11 @@ +platform: 'linux/amd64' + +branches: + exclude: [main] + +pipeline: + clippy: + image: 'rust:1.70' + commands: + - rustup component add clippy + - cargo clippy -- --no-deps -Dwarnings diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 0000000..66d066f --- /dev/null +++ b/.woodpecker/lint.yml @@ -0,0 +1,11 @@ +platform: 'linux/amd64' + +branches: + exclude: [main] + +pipeline: + lint: + image: 'rust:1.70' + commands: + - rustup component add rustfmt + - cargo fmt -- --check