*: enable ARM64 runner

There are many Kubernetes clusters running on ARM64. Enable ARM64 runner
is to commit to support ARM64 platform officially.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
Wei Fu
2023-12-07 23:55:36 +08:00
parent a68efb1bad
commit cb5a48e645
3 changed files with 23 additions and 6 deletions

View File

@@ -25,7 +25,9 @@ script_dir="$(cd -- "$(dirname -- "$0")" > /dev/null 2>&1; pwd -P)"
# e2e will fail with "sudo: command not found"
SUDO=''
if (( $EUID != 0 )); then
SUDO='sudo'
# The actuated ARM64 env needs PATH=$PATH to get `go` path. Otherwise
# `make install` recipe will fail.
SUDO="sudo -E PATH=$PATH"
fi
cd "$(go env GOPATH)"