Skip to content

Commit a99abca

Browse files
committed
Fix: disable building postfix-expoter for ppc64le and s390x
Builds fail: ``` [linux/s390x builder 8/8] RUN env GOOS="linux" GOARCH="s390x" GOARM="$( echo "" | grep -E -o "\d+$")" go build -ldflags '-extldflags "-static"' -o /bin/postfix_exporter 606.1 net: gcc: signal: segmentation fault (core dumped) ... ``` ``` [linux/ppc64le builder 8/8] RUN env GOOS="linux" GOARCH="ppc64le" GOARM="$( echo "" | grep -E -o "\d+$")" go build -ldflags '-extldflags "-static"' -o /bin/postfix_exporter ERROR: process "/bin/sh -c env GOOS=\"${TARGETOS}\" GOARCH=\"${TARGETARCH}\" GOARM=\"$( echo \"$TARGETVARIANT\" | grep -E -o \"\\\\d+$\")\" go build -ldflags '-extldflags \"-static\"' -o /bin/postfix_exporter" did not complete successfully: exit code: 1 gcc: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source (by using -freport-bug). See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions. ```
1 parent 6b6d67e commit a99abca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/actions/build-postfix-exporter/action.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ runs:
6868
push: true
6969
tags: '${{ inputs.tags }}'
7070
labels: ${{ steps.meta.outputs.labels }}
71-
platforms: "linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/mips64le,linux/ppc64le,linux/s390x"
71+
platforms: "linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/mips64le"
72+
#platforms: "linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/mips64le,linux/ppc64le,linux/s390x"
7273
cache-from: type=local,src=/tmp/.buildx-cache/postfix-exporter,mode=max,compression=estargz
7374
cache-to: type=local,dest=/tmp/.buildx-cache-new/postfix-exporter
7475

0 commit comments

Comments
 (0)