move to meson&ninja (#1)

This commit is contained in:
T. von Dein
2025-11-21 00:33:11 +01:00
parent 4a23ca80f2
commit 12b6bbd3cb
11 changed files with 582 additions and 469 deletions

View File

@@ -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

View File

@@ -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