Skip to content

Commit

Permalink
Add s390x support.
Browse files Browse the repository at this point in the history
  • Loading branch information
quintush committed Sep 23, 2024
1 parent 6f06220 commit 2b7a561
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [linux/amd64, linux/arm64]
platform: [linux/amd64, linux/arm64, linux/s390x]
helmVersion: ${{ fromJson(needs.determine-versions.outputs.HELM_VERSIONS) }}
pluginVersion: ${{ fromJson(needs.determine-versions.outputs.HELM_PLUGIN_VERSIONS) }}
steps:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
- Fix assertion does not match when using camelcase function (resolves #359)
- Fix templating multi document Helm file with trims break YAML parsing (resolves #403)
- Fix lookup of resources defined in kubernetesProvider without any objects (resolves #380)
- Improvement support for linux x390x
- Update packages to latest patch versions
- Update documentation

0.6.1 / 2024-09-01
==================
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ build: unittest ## Compile packages and dependencies
.PHONY: dist
dist:
mkdir -p $(DIST)
CGO_ENABLED=0 GOOS=linux GOARCH=s390x go build -o untt -ldflags $(LDFLAGS) ./cmd/helm-unittest
tar -zcvf $(DIST)/helm-unittest-linux-s390x-$(VERSION).tgz untt README.md LICENSE plugin.yaml
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o untt -ldflags $(LDFLAGS) ./cmd/helm-unittest
tar -zcvf $(DIST)/helm-unittest-linux-arm64-$(VERSION).tgz untt README.md LICENSE plugin.yaml
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o untt -ldflags $(LDFLAGS) ./cmd/helm-unittest
Expand All @@ -71,7 +73,6 @@ dist:
tar -zcvf $(DIST)/helm-unittest-macos-arm64-$(VERSION).tgz untt README.md LICENSE plugin.yaml
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o untt.exe -ldflags $(LDFLAGS) ./cmd/helm-unittest
tar -zcvf $(DIST)/helm-unittest-windows-amd64-$(VERSION).tgz untt.exe README.md LICENSE plugin.yaml
shasum -a 256 -b $(DIST)/* > $(DIST)/helm-unittest-checksum.sha
tar -zcvf $(DIST)/helm-unittest-windows_nt-amd64-$(VERSION).tgz untt.exe README.md LICENSE plugin.yaml
shasum -a 256 -b $(DIST)/* > $(DIST)/helm-unittest-checksum.sha

Expand Down
2 changes: 1 addition & 1 deletion install-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ initOS() {
# verifySupported checks that the os/arch combination is supported for
# binary builds.
verifySupported() {
local supported="linux-arm64\nlinux-amd64\nmacos-amd64\nwindows-amd64\nwindows_nt-amd64\nmacos-arm64"
local supported="linux-amd64\nlinux-arm64\nlinux-s390x\nmacos-amd64\nmacos-arm64\nwindows-amd64\nwindows_nt-amd64"
if ! echo "$supported" | grep -q "$OS-$ARCH"; then
echo "No prebuild binary for $OS-$ARCH."
exit 1
Expand Down

0 comments on commit 2b7a561

Please sign in to comment.