Skip to content

Commit 2452961

Browse files
authored
Merge pull request #943 from afbjorklund/windows-artifacts
Add artifacts for windows (x86_64) target
2 parents df49ae8 + 14d4043 commit 2452961

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ DEST := $(shell echo "$(DESTDIR)/$(PREFIX)" | sed 's:///*:/:g; s://*$$::')
44

55
GO ?= go
66
TAR ?= tar
7+
ZIP ?= zip
78
PLANTUML ?= plantuml # may also be "java -jar plantuml.jar" if installed elsewhere
89

910
GOOS ?= $(shell $(GO) env GOOS)
@@ -133,6 +134,13 @@ artifacts-linux:
133134
GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc make clean binaries
134135
$(TAR) -C _output/ -czvf _artifacts/lima-$(VERSION_TRIMMED)-Linux-aarch64.tar.gz ./
135136

137+
.PHONY: artifacts-windows
138+
artifacts-windows:
139+
mkdir -p _artifacts
140+
GOOS=windows GOARCH=amd64 CC=x86_64-w64-mingw32-gcc make clean binaries
141+
$(TAR) -C _output/ -czvf _artifacts/lima-$(VERSION_TRIMMED)-Windows-x86_64.tar.gz ./
142+
cd _output && $(ZIP) -r ../_artifacts/lima-$(VERSION_TRIMMED)-Windows-x86_64.zip *
143+
136144
.PHONY: artifacts-misc
137145
artifacts-misc:
138146
mkdir -p _artifacts

0 commit comments

Comments
 (0)