From d8f387f7967ffb94035de2fcfc4578247ae1023e Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 7 Sep 2022 16:38:43 +0200 Subject: [PATCH] fix: don't try to compress riscv64 binaries in releases --- magefile.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/magefile.go b/magefile.go index 185ad0bd1..cd2fa82d7 100644 --- a/magefile.go +++ b/magefile.go @@ -559,7 +559,9 @@ func (Release) Compress(ctx context.Context) error { return nil } // No mips or s390x for you today - if strings.Contains(info.Name(), "mips") || strings.Contains(info.Name(), "s390x") { + if strings.Contains(info.Name(), "mips") || + strings.Contains(info.Name(), "s390x") || + strings.Contains(info.Name(), "riscv64") { // not supported by upx return nil }