Skip to content

Commit 6420223

Browse files
committed
test: cgo enable 0
Signed-off-by: Peefy <xpf6677@163.com>
1 parent 9e0f086 commit 6420223

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

.github/workflows/go-test.yaml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,49 +26,35 @@ jobs:
2626
matrix:
2727
include:
2828
# macOS Intel/ARM configurations
29-
- os: macos-13
30-
runner: macos-13
31-
cgo_enabled: 1
29+
3230
- os: macos-13
3331
runner: macos-13
3432
cgo_enabled: 0
35-
- os: macos-13-xlarge
36-
runner: macos-13
37-
cgo_enabled: 1
33+
3834
- os: macos-13-xlarge
3935
runner: macos-13
4036
cgo_enabled: 0
41-
- os: macos-14
42-
runner: macos-14
43-
cgo_enabled: 1
37+
4438
- os: macos-14
4539
runner: macos-14
4640
cgo_enabled: 0
47-
- os: macos-latest
48-
runner: macos-latest
49-
cgo_enabled: 1
41+
5042
- os: macos-latest
5143
runner: macos-latest
5244
cgo_enabled: 0
5345

5446
# Ubuntu configurations
55-
- os: ubuntu-22.04
56-
runner: ubuntu-22.04
57-
cgo_enabled: 1
47+
5848
- os: ubuntu-22.04
5949
runner: ubuntu-22.04
6050
cgo_enabled: 0
61-
- os: ubuntu-latest
62-
runner: ubuntu-latest
63-
cgo_enabled: 1
51+
6452
- os: ubuntu-latest
6553
runner: ubuntu-latest
6654
cgo_enabled: 0
6755

6856
# Windows configurations
69-
- os: windows-latest
70-
runner: windows-latest
71-
cgo_enabled: 1
57+
7258
- os: windows-latest
7359
runner: windows-latest
7460
cgo_enabled: 0
@@ -115,8 +101,6 @@ jobs:
115101

116102
- name: Go code test (CGO_ENABLED=${{ matrix.cgo_enabled }})
117103
run: |
118-
CGO_ENABLED=${{ matrix.cgo_enabled }} go test ./... -v \
119-
-coverprofile=coverage-${{ matrix.os }}-cgo-${{ matrix.cgo_enabled }}.out \
120-
-covermode=atomic
104+
CGO_ENABLED=${{ matrix.cgo_enabled }} go test ./... -v
121105
env:
122106
CGO_LDFLAGS: ${{ matrix.cgo_enabled == '1' && '-static' || '' }}

0 commit comments

Comments
 (0)