quickpeep/.ci/woodpecker/release.yml

42 lines
983 B
YAML

# Building a release
platform: linux/${ARCH}
matrix:
ARCH:
- arm64
- amd64
.a1: &when
event: tag
tag: v*
pipeline:
buildRelease:
when: *when
image: "rust:1.59.0"
commands:
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential
- cargo install sqlx-cli --features sqlite
- "qualsuff=`echo -$WOODPECKER_TAG-$WOODPECKER_ARCH | sed s%/%-%`"
- cd quickpeep && bash dev_db.sh && cd ..
- mkdir dist
- cargo install --path quickpeep --bins --root dist
- cargo install --path quickpeep_raker --bins --root dist
- cargo install --path quickpeep_indexer --bins --root dist
- cp -r scripts dist/
- "tar Jcvf quickpeep-$qualsuff.tar.xz"
uploadRelease:
when: *when
image: plugins/gitea-release
base_url: https://bics.ga
checksum:
- sha256
files:
- "quickpeep-*.tar.xz"
secrets:
- source: gitea_token
target: plugin_api_key