You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by yi...@apache.org on 2022/10/27 18:53:15 UTC
[skywalking-infra-e2e] branch fix-windows-build updated: Add .exe suffix to windows build artifact
This is an automated email from the ASF dual-hosted git repository.
yihaochen pushed a commit to branch fix-windows-build
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git
The following commit(s) were added to refs/heads/fix-windows-build by this push:
new 08856d0 Add .exe suffix to windows build artifact
08856d0 is described below
commit 08856d053dbe700d17d586ab946ed79bbb90a58a
Author: Superskyyy <Su...@outlook.com>
AuthorDate: Thu Oct 27 14:53:12 2022 -0400
Add .exe suffix to windows build artifact
---
Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index c7550cc..9260412 100644
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,10 @@ GO_BUILD_LDFLAGS = -X github.com/apache/skywalking-$(PROJECT)/commands.version=$
PLATFORMS := windows linux darwin
os = $(word 1, $@)
+artifact_linux := $(PROJECT)
+artifact_darwin := $(PROJECT)
+artifact_windows := $(PROJECT).exe
+
RELEASE_BIN = skywalking-$(PROJECT)-$(VERSION)-bin
RELEASE_SRC = skywalking-$(PROJECT)-$(VERSION)-src
@@ -55,7 +59,7 @@ test: clean
.PHONY: $(PLATFORMS)
$(PLATFORMS):
mkdir -p $(OUT_DIR)
- GOOS=$(os) GOARCH=$(GOARCH) $(GO_BUILD) $(GO_BUILD_FLAGS) -ldflags "$(GO_BUILD_LDFLAGS)" -o $(OUT_DIR)/$(os)/$(PROJECT) cmd/e2e/main.go
+ GOOS=$(os) GOARCH=$(GOARCH) $(GO_BUILD) $(GO_BUILD_FLAGS) -ldflags "$(GO_BUILD_LDFLAGS)" -o $(OUT_DIR)/$(os)/$(artifact_$(os)) cmd/main.go
.PHONY: build
build: windows linux darwin