From 59062b628acb0aee8f0d1d788b35685ef5b725c1 Mon Sep 17 00:00:00 2001 From: huoqifeng Date: Tue, 1 Nov 2022 09:41:15 +0800 Subject: [PATCH] s390x: initial enabler Signed-off-by: huoqifeng --- .github/workflows/ci.yml | 7 +++++++ .github/workflows/release.yml | 2 ++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca4e99e549d3..37e2dc15a7fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -137,6 +137,8 @@ jobs: goarch: ppc64le - goos: linux goarch: riscv64 + - goos: linux + goarch: s390x - goos: freebsd goarch: amd64 - goos: freebsd @@ -185,6 +187,11 @@ jobs: echo "CGO_ENABLED=1" >> $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) echo "CGO_ENABLED=0" >> $GITHUB_ENV ;; diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3ac6d752ccc2..6995ef90f443 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,6 +49,8 @@ jobs: platform: linux/arm64 - ubuntu: 18.04 platform: linux/ppc64le + - ubuntu: 18.04 + platform: linux/s390x # riscv64 isn't supported by Ubuntu 18.04 - ubuntu: 22.04 platform: linux/riscv64