yama/.woodpecker/release.yml
Olivier 'reivilibre 876a4162fc
Some checks failed
continuous-integration/drone the build failed
Fix release CI config
2021-11-14 17:40:38 +00:00

38 lines
772 B
YAML

# Building a release
platform: linux/${ARCH}
matrix:
ARCH:
- arm64
- amd64
.a1: &when
event: tag
tag: v*
pipeline:
buildRelease:
when: *when
image: docker.bics.ga/rei_ci/rust-sccache
commands:
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libolm-dev cmake
- cargo build --release
- "qualsuff=`echo -$DRONE_TAG-$DRONE_ARCH | sed s%/%-%`"
- mkdir dist
- cp target/release/yama dist/yama$qualsuff
- cp target/release/datman dist/datman$qualsuff
uploadRelease:
when: *when
image: plugins/gitea-release
base_url: https://bics.ga
checksum:
- sha256
files:
- dist/*
secrets:
- source: gitea_token
target: plugin_api_key