diff --git a/.travis.yml b/.travis.yml index bb7e0a6029..1aa3e8fb09 100644 --- a/.travis.yml +++ b/.travis.yml @@ -102,6 +102,10 @@ jobs: - release/dep-linux-ppc64le.sha256 - release/dep-linux-s390x - release/dep-linux-s390x.sha256 + - release/dep-linux-armv6 + - release/dep-linux-armv6.sha256 + - release/dep-linux-arm64 + - release/dep-linux-arm64.sha256 skip_cleanup: true on: repo: golang/dep diff --git a/hack/build-all.bash b/hack/build-all.bash index a71d258096..58d5bc2dd7 100755 --- a/hack/build-all.bash +++ b/hack/build-all.bash @@ -31,7 +31,7 @@ if [[ -z "${DEP_BUILD_PLATFORMS}" ]]; then fi if [[ -z "${DEP_BUILD_ARCHS}" ]]; then - DEP_BUILD_ARCHS="amd64 386 ppc64 ppc64le s390x" + DEP_BUILD_ARCHS="amd64 386 ppc64 ppc64le s390x arm arm64" fi mkdir -p "${DEP_ROOT}/release" @@ -50,8 +50,8 @@ for OS in ${DEP_BUILD_PLATFORMS[@]}; do else CGO_ENABLED=0 fi - if [[ "${ARCH}" == "ppc64" || "${ARCH}" == "ppc64le" || "${ARCH}" == "s390x" ]] && [[ "${OS}" != "linux" ]]; then - # ppc64, ppc64le, and s390x are only supported on Linux. + if [[ "${ARCH}" == "ppc64" || "${ARCH}" == "ppc64le" || "${ARCH}" == "s390x" || "${ARCH}" == "arm" || "${ARCH}" == "arm64" ]] && [[ "${OS}" != "linux" ]]; then + # ppc64, ppc64le, s390x, arm and arm64 are only supported on Linux. echo "Building for ${OS}/${ARCH} not supported." else echo "Building for ${OS}/${ARCH} with CGO_ENABLED=${CGO_ENABLED}" diff --git a/install.sh b/install.sh index 0c089a8e00..9799b054f0 100755 --- a/install.sh +++ b/install.sh @@ -97,6 +97,9 @@ initArch() { ppc64) ARCH="ppc64";; ppc64le) ARCH="ppc64le";; s390x) ARCH="s390x";; + armv6*) ARCH="arm";; + armv7*) ARCH="arm";; + aarch64) ARCH="arm64";; *) echo "Architecture ${ARCH} is not supported by this installation script"; exit 1;; esac echo "ARCH = $ARCH"