summaryrefslogtreecommitdiffstats
path: root/github_build.sh
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2024-02-21 20:30:49 -0800
committerGitHub <noreply@github.com>2024-02-21 20:30:49 -0800
commitc5ac7dee8a47dcb168a6556d2e8cdb8d2fe09a37 (patch)
treed9258b39afc2decb694e9585f0e039ade50462e9 /github_build.sh
parent1c76f2e3ce4c7f0257c8df120ebebb16e4b49105 (diff)
Add release package build for linux aarch64 (#3612)
Diffstat (limited to 'github_build.sh')
-rw-r--r--github_build.sh11
1 files changed, 8 insertions, 3 deletions
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