diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8bf4b13..469fc9b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: diff --git a/Makefile b/Makefile index 1a9f41d..810e26e 100644 --- a/Makefile +++ b/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 \