Fix CI test for Go. (#372)
This commit is contained in:
15
.github/workflows/go.yaml
vendored
15
.github/workflows/go.yaml
vendored
@@ -34,7 +34,7 @@ jobs:
|
|||||||
arch: x86 # use 386 for GOARCH
|
arch: x86 # use 386 for GOARCH
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
@@ -48,12 +48,19 @@ jobs:
|
|||||||
go env GOPATH
|
go env GOPATH
|
||||||
go env GOARCH
|
go env GOARCH
|
||||||
|
|
||||||
- name: Set up MinGW
|
- name: Set up MinGW for x64
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest' && matrix.arch == 'x64'
|
||||||
uses: egor-tensin/setup-mingw@v2
|
uses: csukuangfj/setup-mingw@v2.2.1
|
||||||
with:
|
with:
|
||||||
platform: ${{ matrix.arch }}
|
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
|
- name: Show gcc
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user