42 lines
1010 B
YAML
42 lines
1010 B
YAML
# Building a release
|
|
|
|
platform: linux/${ARCH}
|
|
|
|
matrix:
|
|
ARCH:
|
|
# I don't have an arm64 runner at the moment.
|
|
#- arm64
|
|
- amd64
|
|
|
|
.a1: &when
|
|
event: tag
|
|
tag: v*
|
|
|
|
pipeline:
|
|
buildRelease:
|
|
when: *when
|
|
|
|
# Disabled for now because I'm trying to get infinite build times to stop :-(.
|
|
# Suspect a kernel bug but any workaround will do for now.
|
|
#image: "docker.bics.ga/rei_ci/rust-sccache:latest-${ARCH}"
|
|
image: "rust:1.61"
|
|
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
|