Fangjun Kuang
Committed by GitHub

Fix CI test for Go. (#372)

@@ -34,7 +34,7 @@ jobs: @@ -34,7 +34,7 @@ jobs:
34 arch: x86 # use 386 for GOARCH 34 arch: x86 # use 386 for GOARCH
35 35
36 steps: 36 steps:
37 - - uses: actions/checkout@v2 37 + - uses: actions/checkout@v3
38 with: 38 with:
39 fetch-depth: 0 39 fetch-depth: 0
40 - uses: actions/setup-go@v4 40 - uses: actions/setup-go@v4
@@ -48,11 +48,18 @@ jobs: @@ -48,11 +48,18 @@ jobs:
48 go env GOPATH 48 go env GOPATH
49 go env GOARCH 49 go env GOARCH
50 50
51 - - name: Set up MinGW  
52 - if: matrix.os == 'windows-latest'  
53 - uses: egor-tensin/setup-mingw@v2 51 + - name: Set up MinGW for x64
  52 + if: matrix.os == 'windows-latest' && matrix.arch == 'x64'
  53 + uses: csukuangfj/setup-mingw@v2.2.1
  54 + with:
  55 + platform: ${{ matrix.arch }}
  56 +
  57 + - name: Set up MinGW for x86
  58 + if: matrix.os == 'windows-latest' && matrix.arch == 'x86'
  59 + uses: csukuangfj/setup-mingw@v2.2.1
54 with: 60 with:
55 platform: ${{ matrix.arch }} 61 platform: ${{ matrix.arch }}
  62 + version: '12.2.0'
56 63
57 - name: Show gcc 64 - name: Show gcc
58 if: matrix.os == 'windows-latest' 65 if: matrix.os == 'windows-latest'