test(gateway): qualify production path artifacts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user