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

@@ -77,7 +77,8 @@ build-by-dev-builder: ## Build greptime by dev-builder.
TARGET_DIR=${TARGET_DIR} \ TARGET_DIR=${TARGET_DIR} \
TARGET=${TARGET} \ TARGET=${TARGET} \
RELEASE=${RELEASE} \ RELEASE=${RELEASE} \
CARGO_BUILD_EXTRA_OPTS="${CARGO_BUILD_EXTRA_OPTS}" CARGO_BUILD_EXTRA_OPTS="${CARGO_BUILD_EXTRA_OPTS}" && \
./scripts/check_pyo3_link_script.sh
.PHONY: build-android-bin .PHONY: build-android-bin
build-android-bin: ## Build greptime binary for android. build-android-bin: ## Build greptime binary for android.

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