This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
commit 14b5becc24f014cb6542df9a6f27e65a5e60ea07 Author: Mingyu Chen <[email protected]> AuthorDate: Thu May 4 19:48:41 2023 +0800 [chore](release) build-for-release.sh support arm (#19270) Use `uname -m` to get arch --- build-for-release.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/build-for-release.sh b/build-for-release.sh index 8add0e7876..7341423089 100755 --- a/build-for-release.sh +++ b/build-for-release.sh @@ -109,23 +109,20 @@ echo "Get params: TAR -- ${TAR} " -#sh build.sh --clean && -USE_AVX2="${_USE_AVX2}" sh build.sh && - USE_AVX2="${_USE_AVX2}" sh build.sh --be --meta-tool +ARCH="$(uname -m)" -echo "Begin to pack" ORI_OUTPUT="${ROOT}/output" -FE=apache-doris-fe-${VERSION}-bin-x86_64 -BE=apache-doris-be-${VERSION}-bin-x86_64 -DEPS=apache-doris-dependencies-${VERSION}-bin-x86_64 +FE="apache-doris-fe-${VERSION}-bin-${ARCH}" +BE="apache-doris-be-${VERSION}-bin-${ARCH}" +DEPS="apache-doris-dependencies-${VERSION}-bin-${ARCH}" -OUTPUT="${ORI_OUTPUT}/apache-doris-${VERSION}-bin-x86_64" +OUTPUT="${ORI_OUTPUT}/apache-doris-${VERSION}-bin-${ARCH}" OUTPUT_FE="${OUTPUT}/${FE}" OUTPUT_DEPS="${OUTPUT}/${DEPS}" OUTPUT_BE="${OUTPUT}/${BE}" -if [[ "${_USE_AVX2}" == "0" ]]; then +if [[ "${_USE_AVX2}" == "0" && "${ARCH}" == "x86_64" ]]; then OUTPUT_BE="${OUTPUT_BE}-noavx2" fi @@ -134,6 +131,11 @@ echo "FE: ${OUTPUT_FE}" echo "BE: ${OUTPUT_BE}" echo "JAR: ${OUTPUT_DEPS}" +sh build.sh --clean && + USE_AVX2="${_USE_AVX2}" sh build.sh && + USE_AVX2="${_USE_AVX2}" sh build.sh --be --meta-tool + +echo "Begin to pack" rm -rf "${OUTPUT}" mkdir -p "${OUTPUT_FE}" "${OUTPUT_BE}" "${OUTPUT_DEPS}" --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
