From c5ac7dee8a47dcb168a6556d2e8cdb8d2fe09a37 Mon Sep 17 00:00:00 2001 From: kaizhangNV <149626564+kaizhangNV@users.noreply.github.com> Date: Wed, 21 Feb 2024 20:30:49 -0800 Subject: Add release package build for linux aarch64 (#3612) --- github_build.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'github_build.sh') diff --git a/github_build.sh b/github_build.sh index 357989ccc..c35cff192 100644 --- a/github_build.sh +++ b/github_build.sh @@ -15,10 +15,15 @@ if [[ "" == "${TARGETARCH}" ]]; then TARGETARCH=${ARCH} fi +glslangBuildFlag="" +if [[ "aarch64" == "${TARGETARCH}" && "release" == "${CONFIGURATION}" ]]; then + glslangBuildFlag="--build-glslang=true" +fi + if [[ "${ARCH}" != "${TARGETARCH}" ]]; then # Create the makefile -./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${ARCH} --deps=true --no-progress=true +./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${ARCH} --deps=true --no-progress=true ${glslangBuildFlag} # Build the configuration make config=${CONFIGURATION}_${ARCH} -j`nproc` @@ -26,11 +31,11 @@ make config=${CONFIGURATION}_${ARCH} -j`nproc` rm -rf ./bin # Create the makefile -./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true --skip-source-generation=true --deploy-slang-llvm=false --deploy-slang-glslang=false +./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true --skip-source-generation=true --deploy-slang-llvm=false --deploy-slang-glslang=false ${glslangBuildFlag} else # Create the makefile -./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true +./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true ${glslangBuildFlag} fi # Build the configuration -- cgit v1.2.3