6 Commits

Author SHA1 Message Date
d2ff570dd0 bump version 2025-11-21 22:08:13 +01:00
df8b4349c2 use echo 2025-11-21 22:06:03 +01:00
859ee51b34 fix padding bug 2025-11-21 21:59:39 +01:00
f37954d6a3 reformat 2025-11-21 21:59:28 +01:00
f604b51d72 fix key copy 2025-11-21 21:59:08 +01:00
22ac094680 enhance tests 2025-11-21 21:58:49 +01:00
4 changed files with 8 additions and 10 deletions

View File

@@ -50,5 +50,5 @@ fi
for file in "$@"; do for file in "$@"; do
https --ignore-stdin --check-status -A bearer -a "$DEPLOY_TOKEN" -f POST \ https --ignore-stdin --check-status -A bearer -a "$DEPLOY_TOKEN" -f POST \
"https://codeberg.org/api/v1/repos/${CI_REPO_OWNER}/${CI_REPO_NAME}/releases/$ID/assets" \ "https://codeberg.org/api/v1/repos/${CI_REPO_OWNER}/${CI_REPO_NAME}/releases/$ID/assets" \
"name=${file}" "attachment@${file}" "name=${file}-${version}" "attachment@${file}"
done done

View File

@@ -6,26 +6,24 @@ labels:
steps: steps:
compile: compile:
when: when:
event: [tag,manual] event: [tag]
image: alpine:latest image: alpine:latest
commands: commands:
- apk update - apk update
- apk add --no-cache bash build-base words-en gdb perl pcre2-static pcre2-dev gdbm gdbm-dev pkgconfig meson ninja git - apk add --no-cache bash build-base words-en gdb perl pcre2-static pcre2-dev gdbm gdbm-dev pkgconfig meson ninja
- meson setup --reconfigure --prefer-static -Dcpp_link_args="-static" --buildtype=release build - meson setup --reconfigure --prefer-static -Dcpp_link_args="-static" --buildtype=release build
- ninja -C build - ninja -C build
- meson dist -C build --formats xztar,gztar,zip
- file build/dbtool - file build/dbtool
- mv build/dbtool dbtool-linux-amd64-$CI_COMMIT_TAG - mv build/dbtool dbtool-linux-amd64
- mv build/meson-dist/* .
release: release:
image: alpine:latest image: alpine:latest
when: when:
event: [tag,manual] event: [tag]
environment: environment:
DEPLOY_TOKEN: DEPLOY_TOKEN:
from_secret: DEPLOY_TOKEN from_secret: DEPLOY_TOKEN
commands: commands:
- apk update - apk update
- apk add --no-cache bash httpie jq git - apk add --no-cache bash httpie jq git
- .woodpecker/release.sh dbtool-* - .woodpecker/release.sh dbtool-linux-amd64

View File

@@ -10,7 +10,7 @@ install: all
sudo ninja -C install sudo ninja -C install
clean: clean:
rm -rf build dbtool*core* dbtool.1 test.db clean rm -rf build dbtool*core* dbtool.1 test.db
test: test:
@.woodpecker/test.sh @.woodpecker/test.sh

View File

@@ -17,7 +17,7 @@ data and speed.
You need either the GNU gdbm library or the Berkeley database You need either the GNU gdbm library or the Berkeley database
system. You can find gdbm at: system. You can find gdbm at:
http://www.gnu.org/software/gdbm/gdbm.html http://www.gnu.org/software/gdbm/gdbm.html
And the berkeley library at: https://libdb.org/. And the berkeley library at: http://www.sleepycat.com.
You will also need `meson` and `ninja`: https://mesonbuild.com/. You will also need `meson` and `ninja`: https://mesonbuild.com/.