Skip to content

Commit 641e634

Browse files
authored
Add support for s390x architecture in GitHub Actions workflows. (#337)
Updated GitHub Actions workflows to include linux/s390x in BUILD_PLATFORMS. Modified hack/install-go.sh to dynamically select the appropriate Go tarball based on the system's architecture(amd64, arm64, or others), allowing better support for multi-architecture environments. Signed-off-by: Ashok Pariya <[email protected]>
1 parent 612426e commit 641e634

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/image-build-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: image-build-test
22
on: [push, pull_request]
33

44
env:
5-
BUILD_PLATFORMS: linux/amd64,linux/arm64,linux/ppc64le
5+
BUILD_PLATFORMS: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
66

77
jobs:
88
build-image:

.github/workflows/image-push-main.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Push images on merge to main"
22

33
env:
44
IMAGE_NAME: ghcr.io/${{ github.repository }}-plugin
5-
BUILD_PLATFORMS: linux/amd64,linux/arm64,linux/ppc64le
5+
BUILD_PLATFORMS: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
66

77
on:
88
push:

.github/workflows/image-push-release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Push images on release"
22

33
env:
44
IMAGE_NAME: ghcr.io/${{ github.repository }}-plugin
5-
BUILD_PLATFORMS: linux/amd64,linux/arm64,linux/ppc64le
5+
BUILD_PLATFORMS: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
66

77
on:
88
push:

hack/install-go.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
destination=$1
44
version=$(curl -s https://go.dev/dl/?mode=json | jq -r ".[0].version")
5-
tarball=$version.linux-amd64.tar.gz
5+
arch=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
6+
tarball=$version.linux-$arch.tar.gz
67
url=https://dl.google.com/go/
78

89
mkdir -p $destination

0 commit comments

Comments
 (0)