quickpeep/.ci/woodpecker/release.yml
Olivier 'reivilibre e1c302eebf
Some checks are pending
continuous-integration/drone the build is pending
Fix CI tagging information?
2022-04-07 22:23:55 +01:00

43 lines
1.0 KiB
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 libclang-dev
- cargo install sqlx-cli --features sqlite
- "qualsuff=`echo -$CI_COMMIT_TAG-$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/
- "mv dist quickpeep-$qualsuff"
- "tar Jcvf quickpeep-$qualsuff.tar.xz quickpeep-$qualsuff"
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