mirror of
https://codeberg.org/scip/dbtool.git
synced 2025-12-16 19:00:58 +01:00
move to meson&ninja (#1)
This commit is contained in:
@@ -6,13 +6,28 @@ labels:
|
||||
platform: ${platform}
|
||||
|
||||
steps:
|
||||
build-n-test:
|
||||
build-berkeley:
|
||||
when:
|
||||
event: [push]
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk update
|
||||
- apk add --no-cache bash build-base words-en gdb perl autoconf automake pcre pcre-dev gdbm gdbm-dev pkgconfig
|
||||
- ./autogen.sh
|
||||
- ./configure
|
||||
- make
|
||||
- apk add --no-cache bash build-base words-en gdb perl pcre2 pcre2-dev db db-dev pkgconfig meson ninja
|
||||
- meson setup --reconfigure build
|
||||
- ninja -C build
|
||||
- rm -f test.db
|
||||
- build/dbtool -d test.db -i -k "test" -v "blah blah blah"
|
||||
- build/dbtool -d test.db -D | grep blah
|
||||
|
||||
build-gdbm:
|
||||
when:
|
||||
event: [push]
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk update
|
||||
- apk add --no-cache bash build-base words-en gdb perl pcre2 pcre2-dev gdbm gdbm-dev pkgconfig meson ninja
|
||||
- meson setup --reconfigure build
|
||||
- ninja -C build
|
||||
- rm -f test.db
|
||||
- build/dbtool -d test.db -i -k "test" -v "blah blah blah"
|
||||
- build/dbtool -d test.db -D | grep blah
|
||||
|
||||
@@ -10,10 +10,11 @@ steps:
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk update
|
||||
- apk add --no-cache bash build-base
|
||||
- make static
|
||||
- file dicepwgen_static
|
||||
- mv dicepwgen_static dicepwgen-linux-amd64
|
||||
- apk add --no-cache bash build-base words-en gdb perl pcre2 pcre2-dev gdbm gdbm-dev pkgconfig meson ninja
|
||||
- meson setup --reconfigure --prefer-static build
|
||||
- ninja -C build
|
||||
- file build/dbtool
|
||||
- mv build/dbtool dbtool-linux-amd64
|
||||
|
||||
release:
|
||||
image: alpine:latest
|
||||
@@ -25,4 +26,4 @@ steps:
|
||||
commands:
|
||||
- apk update
|
||||
- apk add --no-cache bash httpie jq git
|
||||
- .woodpecker/release.sh dicepwgen-linux-amd64
|
||||
- .woodpecker/release.sh dbtool-linux-amd64
|
||||
|
||||
Reference in New Issue
Block a user