5 Commits

Author SHA1 Message Date
3dba3473f8 fix license badge 2025-11-25 22:11:53 +01:00
T. von Dein
3d0ec6bfbc fix release building (#4) 2025-11-23 18:23:49 +01:00
b836a4e75d add dist to clean 2025-11-23 18:01:14 +01:00
a4a3cd470f fix db uri 2025-11-21 22:30:17 +01:00
T. von Dein
f2137627d7 unitfixes (#3)
- fix regex match padding
- fix key copying
- add more unit tests
2025-11-21 22:10:52 +01:00
4 changed files with 11 additions and 9 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}-${version}" "attachment@${file}" "name=${file}" "attachment@${file}"
done done

View File

@@ -6,24 +6,26 @@ labels:
steps: steps:
compile: compile:
when: when:
event: [tag] event: [tag,manual]
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 - apk add --no-cache bash build-base words-en gdb perl pcre2-static pcre2-dev gdbm gdbm-dev pkgconfig meson ninja git
- 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 - mv build/dbtool dbtool-linux-amd64-$CI_COMMIT_TAG
- mv build/meson-dist/* .
release: release:
image: alpine:latest image: alpine:latest
when: when:
event: [tag] event: [tag,manual]
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-linux-amd64 - .woodpecker/release.sh dbtool-*

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 rm -rf build dbtool*core* dbtool.1 test.db clean
test: test:
@.woodpecker/test.sh @.woodpecker/test.sh

View File

@@ -1,5 +1,5 @@
[![status-badge](https://ci.codeberg.org/api/badges/15585/status.svg)](https://ci.codeberg.org/repos/15585) [![status-badge](https://ci.codeberg.org/api/badges/15585/status.svg)](https://ci.codeberg.org/repos/15585)
[![License](https://img.shields.io/badge/license-GPL-blue.svg)](https://codeberg.org/scip/dbtool/blob/master/LICENSE) [![License](https://img.shields.io/badge/license-GPL-blue.svg)](https://codeberg.org/scip/dbtool/raw/branch/main/LICENSE)
# README for dbtool 1.9.2 (21/11/2025) # README for dbtool 1.9.2 (21/11/2025)
@@ -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: http://www.sleepycat.com. And the berkeley library at: https://libdb.org/.
You will also need `meson` and `ninja`: https://mesonbuild.com/. You will also need `meson` and `ninja`: https://mesonbuild.com/.