Fix CI test for Go. (#372)

This commit is contained in:
Fangjun Kuang
2023-10-19 12:11:12 +08:00
committed by GitHub
parent eead16e27f
commit 58ab7e77f2

View File

@@ -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,12 +48,19 @@ 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'
run: |