From fc39311383210d605a4557fa40b6f19d2fc202e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Mon, 28 Oct 2024 17:24:50 +0100 Subject: [PATCH] fix: install C compiler using choco --- .github/workflows/build-docker-image.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index 37266db..9025f30 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -52,6 +52,14 @@ jobs: GOOS: windows run: go build + # see https://go.dev/doc/articles/race_detector + # On Windows, the race detector runtime is sensitive to the version of the C compiler installed; as of Go 1.21, + # building a program with -race requires a C compiler that incorporates version 8 or later of the mingw-w64 runtime libraries. + # You can test your C compiler by invoking it with the arguments --print-file-name libsynchronization.a. + # A newer compliant C compiler will print a full path for this library, whereas older C compilers will just echo the argument. + - name: Install C compiler + run: choco install mingw -y + - name: go-test env: CGO_ENABLED: "1"