mxmonzo/.woodpecker.yml

39 lines
960 B
YAML

platform: linux/arm64
pipeline:
clippy:
when:
event: [push, pull_request]
image: rust:1.56.1-slim
commands:
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libolm-dev cmake
#- rustup component add clippy
# TODO clippy one day
- cargo check
buildRelease:
when:
event: tag
tag: v*
image: rust:1.56.1-slim
commands:
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libolm-dev cmake
- cargo build --release
- "qualname=`echo $DRONE_REPO_NAME-$DRONE_TAG-${DRONE_ARCH/\\//-} | sed s%/%-%`"
- mkdir dist
- cp target/release/mxmonzo dist/$qualname
uploadRelease:
when:
event: tag
tag: v*
image: plugins/gitea-release
base_url: https://bics.ga
checksum:
- sha256
files:
- dist/*
secrets:
- source: gitea_token
target: plugin_api_key