From 8606ae48662a629bfaf6999677ccd6d6e195ea96 Mon Sep 17 00:00:00 2001 From: teabot Date: Thu, 16 Mar 2023 08:58:38 -0400 Subject: [PATCH] Fixes #787 --- projects/duckdb.org/package.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/projects/duckdb.org/package.yml b/projects/duckdb.org/package.yml index d8e2df16..0c7260eb 100644 --- a/projects/duckdb.org/package.yml +++ b/projects/duckdb.org/package.yml @@ -11,8 +11,16 @@ build: tea.xyz/gx/cc: c99 tea.xyz/gx/make: '*' cmake.org: ^3 + git-scm.org: '*' working-directory: build 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 .. make --jobs {{ hw.concurrency }} mkdir -p "{{prefix}}"/bin @@ -46,3 +54,8 @@ test: EOS) test "$out" = "$exp" + + if [[ "$(duckdb --version)" != "v{{version}}"* ]]; then + echo "invalid version" >&2 + exit 1 + fi