From 58ab7e77f2c09cb550b7669162146bbc19d5ae5e Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 19 Oct 2023 12:11:12 +0800 Subject: [PATCH] Fix CI test for Go. (#372) --- .github/workflows/go.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index f0e34fe49..a996c2bcc 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -34,7 +34,7 @@ jobs: arch: x86 # use 386 for GOARCH steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - uses: actions/setup-go@v4 @@ -48,11 +48,18 @@ jobs: go env GOPATH go env GOARCH - - name: Set up MinGW - if: matrix.os == 'windows-latest' - uses: egor-tensin/setup-mingw@v2 + - name: Set up MinGW for x64 + if: matrix.os == 'windows-latest' && matrix.arch == 'x64' + uses: csukuangfj/setup-mingw@v2.2.1 + with: + platform: ${{ matrix.arch }} + + - name: Set up MinGW for x86 + if: matrix.os == 'windows-latest' && matrix.arch == 'x86' + uses: csukuangfj/setup-mingw@v2.2.1 with: platform: ${{ matrix.arch }} + version: '12.2.0' - name: Show gcc if: matrix.os == 'windows-latest'