olivefs/.ci/woodpecker/release.yml
Olivier 'reivilibre fd1f1edb10
All checks were successful
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/tag/check Pipeline was successful
ci/woodpecker/tag/release Pipeline was successful
Use amd64 for CI now
2022-05-25 22:42:13 +01:00

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