Skip to content

Commit

Permalink
Fix CI test for Go. (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Oct 19, 2023
1 parent eead16e commit 58ab7e7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
with:
platform: ${{ matrix.arch }}

- name: Set up MinGW for x86
if: matrix.os == 'windows-latest' && matrix.arch == 'x86'
uses: csukuangfj/[email protected]
with:
platform: ${{ matrix.arch }}
version: '12.2.0'

- name: Show gcc
if: matrix.os == 'windows-latest'
Expand Down

0 comments on commit 58ab7e7

Please sign in to comment.