From eb5c6b93543ca1423117045dbbfee0b6f653d392 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 28 Sep 2022 13:42:40 -0700 Subject: Make github CI build aarch64 binaries on release. (#2417) --- github_build.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'github_build.sh') diff --git a/github_build.sh b/github_build.sh index 7e23294a6..bd07da2bb 100644 --- a/github_build.sh +++ b/github_build.sh @@ -7,10 +7,26 @@ chmod u+x premake5 git describe --tags | sed -e "s/\(.*\)/\#define SLANG_TAG_VERSION \"\1\"/" > slang-tag-version.h cat slang-tag-version.h +if [[ "" == "${TARGETARCH}" ]]; then +TARGETARCH=${ARCH} +fi + +if [[ "${ARCH}" != "${TARGETARCH}" ]]; then + # Create the makefile ./premake5 gmake --cc=${CC} --enable-embed-stdlib=true --arch=${ARCH} --deps=true --no-progress=true # Build the configuration -make config=${CONFIGURATION}_x64 -j`nproc` +make config=${CONFIGURATION}_${ARCH} -j`nproc` + +# Create the makefile +./premake5 gmake --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 +else +# Create the makefile +./premake5 gmake --cc=${CC} --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true +fi + +# Build the configuration +make config=${CONFIGURATION}_${TARGETARCH} -j`nproc` -- cgit v1.2.3