mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 13:22:57 +00:00
feat: check aft build in Makefile
This commit is contained in:
3
Makefile
3
Makefile
@@ -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.
|
||||||
|
|||||||
11
scripts/check_pyo3_link_script.sh
Executable file
11
scripts/check_pyo3_link_script.sh
Executable 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
|
||||||
Reference in New Issue
Block a user