mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
add woodpecker config
This commit is contained in:
parent
0eb1534e42
commit
626024a115
1 changed files with 29 additions and 0 deletions
29
.woodpecker/lamp.yml
Normal file
29
.woodpecker/lamp.yml
Normal 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}
|
Loading…
Add table
Add a link
Reference in a new issue