Skip to content
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}"