From 75b2f5da4b6089bf43d4d14468e6c90c6ef74b1e Mon Sep 17 00:00:00 2001 From: Siyuan Miao Date: Tue, 20 May 2025 20:28:40 +0200 Subject: [PATCH] build: enable trimpath for both dev and prod releases --- .github/workflows/build.yml | 3 --- Makefile | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 469fc9bf..8bf4b13f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,9 +42,6 @@ jobs: uses: becheran/go-testreport@v0.3.2 with: input: "testreport.json" - - name: Build release - run: | - make build_release - name: Upload artifact uses: actions/upload-artifact@v4 with: diff --git a/Makefile b/Makefile index 810e26ea..058cd508 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,10 @@ hash_resource: build_dev: hash_resource @echo "Building..." - $(GO_CMD) build -ldflags="$(GO_LDFLAGS) -X $(KVM_PKG_NAME).builtAppVersion=$(VERSION_DEV)" -o $(BIN_DIR)/jetkvm_app cmd/main.go + $(GO_CMD) build \ + -ldflags="$(GO_LDFLAGS) -X $(KVM_PKG_NAME).builtAppVersion=$(VERSION_DEV)" \ + -trimpath \ + -o $(BIN_DIR)/jetkvm_app cmd/main.go build_test2json: $(GO_CMD) build -o $(BIN_DIR)/test2json cmd/test2json