Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 73b3afe

Browse files
committed
Merge pull request #2070 from kevinburke/s390x-releases
install.sh: add s390x to the install script
2 parents 5494240 + 0f643b3 commit 73b3afe

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ jobs:
100100
- release/dep-linux-ppc64.sha256
101101
- release/dep-linux-ppc64le
102102
- release/dep-linux-ppc64le.sha256
103+
- release/dep-linux-s390x
104+
- release/dep-linux-s390x.sha256
103105
skip_cleanup: true
104106
on:
105107
repo: golang/dep

hack/build-all.bash

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [[ -z "${DEP_BUILD_PLATFORMS}" ]]; then
3131
fi
3232

3333
if [[ -z "${DEP_BUILD_ARCHS}" ]]; then
34-
DEP_BUILD_ARCHS="amd64 386 ppc64 ppc64le"
34+
DEP_BUILD_ARCHS="amd64 386 ppc64 ppc64le s390x"
3535
fi
3636

3737
mkdir -p "${DEP_ROOT}/release"
@@ -50,8 +50,8 @@ for OS in ${DEP_BUILD_PLATFORMS[@]}; do
5050
else
5151
CGO_ENABLED=0
5252
fi
53-
if [[ "${ARCH}" == "ppc64" || "${ARCH}" == "ppc64le" ]] && [[ "${OS}" != "linux" ]]; then
54-
# ppc64 and ppc64le are only supported on Linux.
53+
if [[ "${ARCH}" == "ppc64" || "${ARCH}" == "ppc64le" || "${ARCH}" == "s390x" ]] && [[ "${OS}" != "linux" ]]; then
54+
# ppc64, ppc64le, and s390x are only supported on Linux.
5555
echo "Building for ${OS}/${ARCH} not supported."
5656
else
5757
echo "Building for ${OS}/${ARCH} with CGO_ENABLED=${CGO_ENABLED}"

install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ initArch() {
9696
i386) ARCH="386";;
9797
ppc64) ARCH="ppc64";;
9898
ppc64le) ARCH="ppc64le";;
99+
s390x) ARCH="s390x";;
99100
*) echo "Architecture ${ARCH} is not supported by this installation script"; exit 1;;
100101
esac
101102
echo "ARCH = $ARCH"

0 commit comments

Comments
 (0)