test(gateway): qualify production path artifacts

This commit is contained in:
sechmachine
2026-07-30 11:15:55 +07:00
parent baf4073f68
commit 0c4d87406e
17 changed files with 659 additions and 139 deletions
+7 -1
View File
@@ -1,7 +1,8 @@
.PHONY: format-check module-verify build vet test openspec verify
.PHONY: format-check module-verify build vet test openspec gateway-linux verify
GO ?= go
OPENSPEC ?= openspec
DIST_DIR ?= dist
format-check:
@test -z "$$(gofmt -l $$(find gateway -type f -name '*.go' -print))"
@@ -21,4 +22,9 @@ test:
openspec:
$(OPENSPEC) validate --all --strict --no-interactive
gateway-linux:
mkdir -p "$(DIST_DIR)"
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off $(GO) build -mod=readonly -trimpath -buildvcs=false -ldflags=-buildid= -o "$(DIST_DIR)/verse-gateway-linux-amd64" ./cmd/verse-gateway
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOWORK=off $(GO) build -mod=readonly -trimpath -buildvcs=false -ldflags=-buildid= -o "$(DIST_DIR)/verse-gateway-linux-arm64" ./cmd/verse-gateway
verify: format-check module-verify build vet test openspec