Files
dbtool/.woodpecker/release.yaml

32 lines
849 B
YAML
Raw Permalink Normal View History

2025-11-16 20:55:18 +01:00
# build release
labels:
platform: linux/amd64
steps:
compile:
when:
2025-11-23 18:23:49 +01:00
event: [tag,manual]
2025-11-16 20:55:18 +01:00
image: alpine:latest
commands:
- apk update
2025-11-23 18:23:49 +01:00
- apk add --no-cache bash build-base words-en gdb perl pcre2-static pcre2-dev gdbm gdbm-dev pkgconfig meson ninja git
2025-11-21 14:06:32 +01:00
- meson setup --reconfigure --prefer-static -Dcpp_link_args="-static" --buildtype=release build
2025-11-21 00:33:11 +01:00
- ninja -C build
2025-11-23 18:23:49 +01:00
- meson dist -C build --formats xztar,gztar,zip
2025-11-21 00:33:11 +01:00
- file build/dbtool
2025-11-23 18:23:49 +01:00
- mv build/dbtool dbtool-linux-amd64-$CI_COMMIT_TAG
- mv build/meson-dist/* .
2025-11-16 20:55:18 +01:00
release:
image: alpine:latest
when:
2025-11-23 18:23:49 +01:00
event: [tag,manual]
2025-11-16 20:55:18 +01:00
environment:
DEPLOY_TOKEN:
from_secret: DEPLOY_TOKEN
commands:
- apk update
- apk add --no-cache bash httpie jq git
2025-11-23 18:23:49 +01:00
- .woodpecker/release.sh dbtool-*