Skip to content

Commit e55e8b1

Browse files
Add s390x binaries for Linux to releases and fix ppc64le release binaries (#3900)
1 parent 87d9edb commit e55e8b1

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## [Unreleased]
44

55
- Add `buf export --all` flag to include non-proto source files.
6+
- Add s390x binaries for Linux to releases.
7+
- Fix ppc64le binaries for Linux released as x86_64 binaries.
68

79
## [v1.55.1] - 2025-06-17
810

make/buf/scripts/release.bash

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ goos() {
1818
Darwin) echo darwin ;;
1919
Linux) echo linux ;;
2020
Windows) echo windows ;;
21-
*) return 1 ;;
21+
*) echo "unsupported"; return 1 ;;
2222
esac
2323
}
2424

@@ -29,7 +29,9 @@ goarch() {
2929
arm64) echo arm64 ;;
3030
aarch64) echo arm64 ;;
3131
armv7) echo arm ;;
32-
*) return 1 ;;
32+
ppc64le) echo ppc64le ;;
33+
s390x) echo s390x ;;
34+
*) echo "unsupported"; return 1 ;;
3335
esac
3436
}
3537

@@ -85,7 +87,7 @@ mkdir -p "${RELEASE_DIR}"
8587
cd "${RELEASE_DIR}"
8688

8789
for os in Darwin Linux Windows; do
88-
for arch in x86_64 riscv64 arm64 armv7 ppc64le; do
90+
for arch in x86_64 riscv64 arm64 armv7 ppc64le s390x; do
8991
# our goal is to have the binaries be suffixed with $(uname -s)-$(uname -m)
9092
# on mac, this is arm64, on linux, this is aarch64, for historical reasons
9193
# this is a hacky way to not have to rewrite this loop (and others below)
@@ -118,7 +120,7 @@ for os in Darwin Linux Windows; do
118120
done
119121

120122
for os in Darwin Linux Windows; do
121-
for arch in x86_64 riscv64 arm64 armv7 ppc64le; do
123+
for arch in x86_64 riscv64 arm64 armv7 ppc64le s390x; do
122124
if [[ ! "${arch}" =~ x86_64|arm64 ]] && [ "${os}" != "Linux" ]; then
123125
continue
124126
fi
@@ -141,7 +143,7 @@ for os in Darwin Linux Windows; do
141143
done
142144

143145
for os in Darwin Linux; do
144-
for arch in x86_64 riscv64 arm64 armv7 ppc64le; do
146+
for arch in x86_64 riscv64 arm64 armv7 ppc64le s390x; do
145147
if [[ ! "${arch}" =~ x86_64|arm64 ]] && [ "${os}" != "Linux" ]; then
146148
continue
147149
fi

make/go/dep_protoc.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ endif
3232
endif
3333
ifeq ($(UNAME_OS),Linux)
3434
PROTOC_OS = linux
35+
ifeq ($(UNAME_ARCH),s390x)
36+
PROTOC_ARCH := s390_64
37+
else
3538
PROTOC_ARCH := $(UNAME_ARCH)
3639
endif
40+
endif
3741

3842
PROTOC := $(CACHE_VERSIONS)/protoc/$(PROTOC_VERSION)
3943
$(PROTOC):

0 commit comments

Comments
 (0)