Skip to content

Commit

Permalink
Fix release publishing workflows
Browse files Browse the repository at this point in the history
Make GH actions work for release publishing
  • Loading branch information
adidenko committed Jun 20, 2024
1 parent 06f7cc9 commit ec4ae45
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ec4ae45

Please sign in to comment.