From a5ac4ea1615d568fd4bd44b4ad241c6fc9ca25c7 Mon Sep 17 00:00:00 2001 From: Alexey Kovrizhkin Date: Wed, 20 Dec 2023 17:53:53 +0300 Subject: [PATCH] docker workflow: compiler 'gcc' not found, so disable tests --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b12b9d5..289d098 100644 --- a/Makefile +++ b/Makefile @@ -110,7 +110,7 @@ $(PRG): $(SOURCES) "-X main.version=$(APP_VERSION) -X main.repo=$(REPO)" ./cmd/$@ ## Build like docker image from scratch -build-standalone: test +build-standalone: CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \ $(GO) build -a -o $(PRG_DEST) \ -ldflags "${LDFLAGS}-X main.version=$(APP_VERSION) -X main.repo=$(REPO)" \ @@ -144,7 +144,7 @@ test: lint vet coverage.out # internal target coverage.out: $(SOURCES) - CGO_ENABLED=1 GIN_MODE=release $(GO) test -tags test -race -covermode=atomic -coverprofile=$@ ./... + GIN_MODE=release $(GO) test -tags test -race -covermode=atomic -coverprofile=$@ ./... ## Open coverage report in browser cov-html: cov