Skip to content

Commit 354941b

Browse files
committed
build: add trimpath to go build command
1 parent 4b91c75 commit 354941b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build.yml

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

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ dev_release: frontend build_dev
6666

6767
build_release: frontend hash_resource
6868
@echo "Building release..."
69-
$(GO_CMD) build -ldflags="$(GO_LDFLAGS) -X $(KVM_PKG_NAME).builtAppVersion=$(VERSION)" -o bin/jetkvm_app cmd/main.go
69+
$(GO_CMD) build \
70+
-ldflags="$(GO_LDFLAGS) -X $(KVM_PKG_NAME).builtAppVersion=$(VERSION)" \
71+
-trimpath \
72+
-o bin/jetkvm_app cmd/main.go
7073

7174
release:
7275
@if rclone lsf r2://jetkvm-update/app/$(VERSION)/ | grep -q "jetkvm_app"; then \

0 commit comments

Comments
 (0)