Skip to content

Commit 3003d66

Browse files
committed
test: windows shell
Signed-off-by: Peefy <xpf6677@163.com>
1 parent 1945a15 commit 3003d66

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/go-test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ jobs:
106106
echo "GO_LDFLAGS=-linkmode external -extldflags '-static'" >> $GITHUB_ENV
107107
108108
- name: Go code test (CGO_ENABLED=${{ matrix.cgo_enabled }})
109+
if: matrix.os != 'windows-latest'
109110
run: |
110111
if [ -n "${{ matrix.container }}" ]; then
111112
BUILD_TAGS="$GO_BUILD_TAGS"
@@ -118,3 +119,8 @@ jobs:
118119
-ldflags="${EXTRA_LDFLAGS}"
119120
env:
120121
CGO_LDFLAGS: ${{ matrix.cgo_enabled == '1' && '-static' || '' }}
122+
123+
- name: Go code test (CGO_ENABLED=${{ matrix.cgo_enabled }})
124+
if: matrix.os == 'windows-latest'
125+
run: |
126+
CGO_ENABLED=${{ matrix.cgo_enabled }} go test ./... -v

0 commit comments

Comments
 (0)