From ec4ae45a64c8f6fa19e1b17ac1426ca7b7935e15 Mon Sep 17 00:00:00 2001 From: Alexander Didenko Date: Thu, 20 Jun 2024 14:19:41 +0200 Subject: [PATCH] Fix release publishing workflows Make GH actions work for release publishing --- Makefile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 2ded478..c6050fc 100644 --- a/Makefile +++ b/Makefile @@ -46,23 +46,19 @@ test: $(VENDOR_DIR) .PHONY: build-ubuntu-latest build-ubuntu-latest: $(VENDOR_DIR) $(OUTPUT_DIR) CGO_ENABLED=1 go build -a -ldflags '-extldflags "-static"' -o output/minigun . - tar czf output/minigun-linux-amd64.tar.gz output/minigun - rm -f output/minigun + cd output && file minigun && tar czf minigun-linux-amd64.tar.gz minigun && rm -f minigun GOARCH=arm64 CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o output/minigun . - tar czf output/minigun-linux-arm64.tar.gz output/minigun - rm -f output/minigun + cd output && file minigun && tar czf minigun-linux-arm64.tar.gz minigun && rm -f minigun .PHONY: build-macos-latest build-macos-latest: $(VENDOR_DIR) $(OUTPUT_DIR) CGO_ENABLED=1 go build -a -ldflags '-extldflags "-static"' -o output/minigun . - tar czf output/minigun-darwin-amd64.tar.gz output/minigun + cd output && file minigun && tar czf minigun-darwin-amd64.tar.gz minigun && rm -f minigun rm -f output/minigun GOARCH=arm64 CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o output/minigun . - tar czf output/minigun-darwin-arm64.tar.gz output/minigun - rm -f output/minigun + cd output && file minigun && tar czf minigun-darwin-arm64.tar.gz minigun && rm -f minigun .PHONY: build-windows-latest build-windows-latest: $(VENDOR_DIR) $(OUTPUT_DIR) CGO_ENABLED=1 go build -a -ldflags '-extldflags "-static"' -o output/minigun.exe . - tar czf output/minigun-win64.tar.gz output/minigun.exe - rm -f output/minigun.exe + cd output && tar czf minigun-win64.tar.gz minigun.exe && rm -f output/minigun.exe