Initial CI config
This commit is contained in:
parent
baf80db238
commit
3ba35e6960
38
.woodpecker.yml
Normal file
38
.woodpecker.yml
Normal file
@ -0,0 +1,38 @@
|
||||
platform: linux/arm64
|
||||
|
||||
pipeline:
|
||||
unitTests:
|
||||
image: rust:1.54.0-slim
|
||||
commands:
|
||||
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential
|
||||
- cargo build --all
|
||||
#- cargo test --all
|
||||
|
||||
buildRelease:
|
||||
when:
|
||||
event: tag
|
||||
tag: v*
|
||||
image: rust:1.54.0-slim
|
||||
commands:
|
||||
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential
|
||||
- cargo build --release
|
||||
- "dir=$DRONE_REPO_NAME-$DRONE_TAG-${DRONE_ARCH/'/'/-}"
|
||||
- "mkdir $dir"
|
||||
- cp target/release/mxmonzo $dir/
|
||||
- tar cvf $dir.tar.gz $dir
|
||||
- mkdir dist
|
||||
- mv $dir.tar.gz dist/
|
||||
|
||||
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
|
Loading…
Reference in New Issue
Block a user