From 98a830277e8977b0e34481e5c8b1c8d5308ec3a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Mon, 28 Oct 2024 17:43:49 +0100 Subject: [PATCH] chore: install mingw with an action --- .github/workflows/build-docker-image.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index cf90522..50c9f00 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -57,17 +57,15 @@ jobs: # 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 -f - echo "C:\ProgramData\mingw64\mingw64\bin" >> $GITHUB_PATH + - name: Set up MinGW + uses: egor-tensin/setup-mingw@84c781b557efd538dec66bde06988d81cd3138cf // v2.2.0 + with: + platform: x64 - name: go-test env: CGO_ENABLED: "1" - run: | - refreshenv - go test -race -v ./... + run: go test -race -v ./... build-image-linux: runs-on: ubuntu-latest