mirror of https://github.com/jetkvm/kvm.git
build: add trimpath to go build command
This commit is contained in:
parent
4b91c758fa
commit
354941b54d
|
@ -42,6 +42,9 @@ 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:
|
||||
|
|
5
Makefile
5
Makefile
|
@ -66,7 +66,10 @@ dev_release: frontend build_dev
|
|||
|
||||
build_release: frontend hash_resource
|
||||
@echo "Building release..."
|
||||
$(GO_CMD) build -ldflags="$(GO_LDFLAGS) -X $(KVM_PKG_NAME).builtAppVersion=$(VERSION)" -o bin/jetkvm_app cmd/main.go
|
||||
$(GO_CMD) build \
|
||||
-ldflags="$(GO_LDFLAGS) -X $(KVM_PKG_NAME).builtAppVersion=$(VERSION)" \
|
||||
-trimpath \
|
||||
-o bin/jetkvm_app cmd/main.go
|
||||
|
||||
release:
|
||||
@if rclone lsf r2://jetkvm-update/app/$(VERSION)/ | grep -q "jetkvm_app"; then \
|
||||
|
|
Loading…
Reference in New Issue