mirror of
https://codeberg.org/scip/dbtool.git
synced 2025-12-18 11:50:57 +01:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1616eac575 | |||
| fb243dc3b7 | |||
| 2cec3edc3c | |||
| b836a4e75d | |||
| a4a3cd470f | |||
|
|
f2137627d7 |
@@ -50,5 +50,5 @@ fi
|
||||
for file in "$@"; do
|
||||
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" \
|
||||
"name=${file}-${version}" "attachment@${file}"
|
||||
"name=${file}" "attachment@${file}"
|
||||
done
|
||||
|
||||
@@ -6,24 +6,26 @@ labels:
|
||||
steps:
|
||||
compile:
|
||||
when:
|
||||
event: [tag]
|
||||
event: [tag,manual]
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- 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
|
||||
- ninja -C build
|
||||
- meson dist -C build --formats xztar,gztar,zip
|
||||
- file build/dbtool
|
||||
- mv build/dbtool dbtool-linux-amd64
|
||||
- mv build/dbtool dbtool-linux-amd64-$CI_COMMIT_TAG
|
||||
- mv build/meson-dist/* .
|
||||
|
||||
release:
|
||||
image: alpine:latest
|
||||
when:
|
||||
event: [tag]
|
||||
event: [tag,manual]
|
||||
environment:
|
||||
DEPLOY_TOKEN:
|
||||
from_secret: DEPLOY_TOKEN
|
||||
commands:
|
||||
- apk update
|
||||
- apk add --no-cache bash httpie jq git
|
||||
- .woodpecker/release.sh dbtool-linux-amd64
|
||||
- .woodpecker/release.sh dbtool-*
|
||||
|
||||
2
Makefile
2
Makefile
@@ -10,7 +10,7 @@ install: all
|
||||
sudo ninja -C install
|
||||
|
||||
clean:
|
||||
rm -rf build dbtool*core* dbtool.1 test.db
|
||||
rm -rf build dbtool*core* dbtool.1 test.db clean
|
||||
|
||||
test:
|
||||
@.woodpecker/test.sh
|
||||
|
||||
@@ -17,7 +17,7 @@ data and speed.
|
||||
You need either the GNU gdbm library or the Berkeley database
|
||||
system. You can find gdbm at:
|
||||
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/.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user