From 36bafcf8a275d8f350511d638fa5b54008e345b3 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sun, 23 Jun 2024 19:55:51 -0400 Subject: ci(test): Add 32-bit CI tests (#2126) Signed-off-by: Dave Henderson --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 046092da..b1a9381e 100644 --- a/Makefile +++ b/Makefile @@ -147,7 +147,11 @@ $(PREFIX)/bin/$(PKG_NAME)$(call extension,$(GOOS)): $(PREFIX)/bin/$(PKG_NAME)_$( build: $(PREFIX)/bin/$(PKG_NAME)_$(GOOS)-$(GOARCH)$(TARGETVARIANT)$(call extension,$(GOOS)) $(PREFIX)/bin/$(PKG_NAME)$(call extension,$(GOOS)) -ifeq ($(OS),Windows_NT) +# test with race detector on supported platforms +# windows/amd64 is supported in theory, but in practice it requires a C compiler +race_platforms := 'linux/amd64' 'darwin/amd64' 'darwin/arm64' +ifeq (,$(findstring '$(GOOS)/$(GOARCH)',$(race_platforms))) +export CGO_ENABLED=0 test: $(GO) test -coverprofile=c.out ./... else -- cgit v1.2.3