39 lines
832 B
YAML
39 lines
832 B
YAML
# Building a release
|
|
|
|
platform: linux/${ARCH}
|
|
|
|
matrix:
|
|
ARCH:
|
|
# No arm64 runners at the moment
|
|
#- arm64
|
|
- amd64
|
|
|
|
.a1: &when
|
|
event: tag
|
|
tag: v*
|
|
|
|
pipeline:
|
|
buildRelease:
|
|
when: *when
|
|
|
|
image: "rust:1.57.0-slim"
|
|
commands:
|
|
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libolm-dev cmake libfuse-dev
|
|
- cargo build --release --all
|
|
- "qualsuff=`echo -$WOODPECKER_TAG-$WOODPECKER_ARCH | sed s%/%-%`"
|
|
- mkdir dist
|
|
- cp target/release/olivefs dist/olivefs$qualsuff
|
|
- cp target/release/olivefsd dist/olivefsd$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
|