Skip to content

Commit 4e90883

Browse files
committed
build: enable trimpath for both dev and prod releases
1 parent 8eaa86a commit 4e90883

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ jobs:
4242
uses: becheran/[email protected]
4343
with:
4444
input: "testreport.json"
45-
- name: Build release
46-
run: |
47-
make build_release
4845
- name: Upload artifact
4946
uses: actions/upload-artifact@v4
5047
with:

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ hash_resource:
2525

2626
build_dev: hash_resource
2727
@echo "Building..."
28-
$(GO_CMD) build -ldflags="$(GO_LDFLAGS) -X $(KVM_PKG_NAME).builtAppVersion=$(VERSION_DEV)" -o $(BIN_DIR)/jetkvm_app cmd/main.go
28+
$(GO_CMD) build \
29+
-ldflags="$(GO_LDFLAGS) -X $(KVM_PKG_NAME).builtAppVersion=$(VERSION_DEV)" \
30+
-trimpath \
31+
-o $(BIN_DIR)/jetkvm_app cmd/main.go
2932

3033
build_test2json:
3134
$(GO_CMD) build -o $(BIN_DIR)/test2json cmd/test2json

0 commit comments

Comments
 (0)