yama/.woodpecker/release.yml
Olivier 'reivilibre c0f4f271ab
All checks were successful
continuous-integration/drone the build was successful
Use architecture-specific images due to build issues upstream
2021-11-14 19:12:06 +00:00

38 lines
789 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:latest-${ARCH}"
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