add woodpecker config

This commit is contained in:
crapStone 2022-07-16 01:23:26 +02:00
parent 0eb1534e42
commit 626024a115
No known key found for this signature in database
GPG Key ID: 4CAA9E39EEDEB1F0

29
.woodpecker/lamp.yml Normal file
View File

@ -0,0 +1,29 @@
branches: ["main"]
matrix:
RELEASE_DEBUG:
- ""
- "--release"
pipeline:
lint:
image: rust:alpine
pull: true
when:
path:
include: ["src/**", "Cargo.toml", "Cargo.lock", ".woodpecker/lamp.yml"]
commands:
- apk add musl-dev
- rustup component add clippy rustfmt
- cargo fmt -- --check
- cargo clippy --locked ${RELEASE_DEBUG} -- --deny clippy::all --deny warnings
build:
image: rust:alpine
pull: true
when:
path:
include: ["src/**", "Cargo.toml", "Cargo.lock", ".woodpecker/lamp.yml"]
commands:
- apk add musl-dev
- cargo build --locked ${RELEASE_DEBUG}