Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ARM support #361

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions cicd/scripts/build_cross_compile_scloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ else

fi

BUILD_TARGETS_ARCH=( 386 amd64 )
BUILD_TARGETS_ARCH=( 386 amd64 arm64 )
BUILD_TARGETS_OS=( darwin linux windows )
TARGET_ROOT_DIR=bin/cross-compiled_scloud
ARCHIVE_DIR=${TARGET_ROOT_DIR}/archive
Expand All @@ -41,6 +41,11 @@ do
echo "Skipping darwin/386, no longer supported in go 1.15+"
continue
fi
if [[ 'windows' == ${os} ]] && [[ "arm64" == ${arch} ]]
then
echo "Skipping windows/arm64"
continue
fi
target_dir=${TARGET_ROOT_DIR}/${os}_${arch}
mkdir -p ${target_dir}
target_file=${target_dir}/${program_name}
Expand All @@ -64,6 +69,8 @@ done

if [[ "$(uname -m)" == "x86_64" ]] ; then
myarch=amd64
elif [[ "$(uname -m)" == "aarch64" ]] ; then
myarch=arm64
else
myarch=386
fi
Expand Down Expand Up @@ -97,4 +104,4 @@ echo ""
echo "Package archives created: "
echo ""
archives=$(ls ${ARCHIVE_DIR})
echo "${archives}"
echo "${archives}"