This commit is contained in:
teabot 2023-03-16 08:58:38 -04:00 committed by Max Howell
parent 4c8845b57b
commit 8606ae4866

View file

@ -11,8 +11,16 @@ build:
tea.xyz/gx/cc: c99 tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*' tea.xyz/gx/make: '*'
cmake.org: ^3 cmake.org: ^3
git-scm.org: '*'
working-directory: build working-directory: build
script: | script: |
# duckdb uses git to get its version
git init ..
git config user.email "bot@tea.xyz"
git config user.name "teabot"
git commit --allow-empty -mnil
git tag v{{version}}
cmake .. cmake ..
make --jobs {{ hw.concurrency }} make --jobs {{ hw.concurrency }}
mkdir -p "{{prefix}}"/bin mkdir -p "{{prefix}}"/bin
@ -46,3 +54,8 @@ test:
EOS) EOS)
test "$out" = "$exp" test "$out" = "$exp"
if [[ "$(duckdb --version)" != "v{{version}}"* ]]; then
echo "invalid version" >&2
exit 1
fi