Skip to content

Commit

Permalink
multiarch package builder (GoogleCloudPlatform#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
hopkiw authored Feb 1, 2021
1 parent b1863d1 commit bd3b6d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packagebuild/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ trap 'exit_error $LINENO' ERR
function install_go() {
# Installs a specific version of go for compilation, since availability varies
# across linux distributions. Needs curl and tar to be installed.
local arch="amd64"
if [[ `uname -m` == "aarch64" ]]; then
arch="arm64"
fi

local GOLANG="go1.13.9.linux-amd64.tar.gz"
local GOLANG="go1.13.9.linux-${arch}.tar.gz"
export GOPATH=/usr/share/gocode
export GOCACHE=/tmp/.cache

Expand Down

0 comments on commit bd3b6d9

Please sign in to comment.