mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-01-19 08:57:55 +00:00
30 lines
663 B
YAML
30 lines
663 B
YAML
|
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}
|