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