feat: check aft build in Makefile

This commit is contained in:
Discord9
2023-11-24 16:53:46 +08:00
parent 902e6ead60
commit cbae03af07
2 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
# This script is only used in CI to check if the pyo3 backend is linked correctly
echo $(pwd)
if [[ $FEATURES == *pyo3_backend* ]]; then
cp target/release/greptime scripts
if yes | ./scripts/greptime.sh --version &> /dev/null; then
exit 0
else
exit 1
fi
fi