31 lines
722 B
YAML
31 lines
722 B
YAML
|
clone:
|
||
|
git:
|
||
|
image: "woodpeckerci/plugin-git:next"
|
||
|
pipeline:
|
||
|
compliance:
|
||
|
commands:
|
||
|
- "rustup component add clippy"
|
||
|
- "cargo build --verbose"
|
||
|
- "cargo clippy --workspace --tests --all-targets --all-features"
|
||
|
- "cargo test --workspace --no-fail-fast"
|
||
|
image: "rust:latest"
|
||
|
when:
|
||
|
event: pull_request, push
|
||
|
build:
|
||
|
commands:
|
||
|
- "cargo build --release"
|
||
|
image: "rust:latest"
|
||
|
when:
|
||
|
branch: main
|
||
|
event: push
|
||
|
release:
|
||
|
image: jolheiser/drone-gitea-main:latest
|
||
|
settings:
|
||
|
token:
|
||
|
from_secret: gitea_token
|
||
|
base: https://git.jojodev.com
|
||
|
files:
|
||
|
- "target/release/woxlf"
|
||
|
when:
|
||
|
branch: main
|
||
|
event: push
|