Merge pull request #7614 from huoqifeng/s390x

s390x: build and package s390x bin in release assets
This commit is contained in:
Derek McGowan 2022-11-07 12:08:43 -08:00 committed by GitHub
commit d1564fec5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -153,6 +153,8 @@ jobs:
goarch: ppc64le goarch: ppc64le
- goos: linux - goos: linux
goarch: riscv64 goarch: riscv64
- goos: linux
goarch: s390x
- goos: freebsd - goos: freebsd
goarch: amd64 goarch: amd64
- goos: freebsd - goos: freebsd
@ -201,6 +203,11 @@ jobs:
echo "CGO_ENABLED=1" >> $GITHUB_ENV echo "CGO_ENABLED=1" >> $GITHUB_ENV
echo "CC=riscv64-linux-gnu-gcc" >> $GITHUB_ENV echo "CC=riscv64-linux-gnu-gcc" >> $GITHUB_ENV
;; ;;
linux/s390x)
packages+=" crossbuild-essential-s390x"
echo "CGO_ENABLED=1" >> $GITHUB_ENV
echo "CC=s390x-linux-gnu-gcc" >> $GITHUB_ENV
;;
windows/arm/v7) windows/arm/v7)
echo "CGO_ENABLED=0" >> $GITHUB_ENV echo "CGO_ENABLED=0" >> $GITHUB_ENV
;; ;;

View File

@ -69,6 +69,8 @@ jobs:
dockerfile-platform: linux/arm64 dockerfile-platform: linux/arm64
- dockerfile-ubuntu: 18.04 - dockerfile-ubuntu: 18.04
dockerfile-platform: linux/ppc64le dockerfile-platform: linux/ppc64le
- dockerfile-ubuntu: 18.04
dockerfile-platform: linux/s390x
# riscv64 isn't supported by Ubuntu 18.04 # riscv64 isn't supported by Ubuntu 18.04
- dockerfile-ubuntu: 22.04 - dockerfile-ubuntu: 22.04
dockerfile-platform: linux/riscv64 dockerfile-platform: linux/riscv64