Skip to content

Commit 1945a15

Browse files
committed
test: add musl build tag
Signed-off-by: Peefy <xpf6677@163.com>
1 parent 63b6413 commit 1945a15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/go-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
- name: Setup build tags for Alpine
103103
if: matrix.container != null
104104
run: |
105-
echo "GO_BUILD_TAGS=netgo static osusergo" >> $GITHUB_ENV
105+
echo "GO_BUILD_TAGS=musl netgo static osusergo" >> $GITHUB_ENV
106106
echo "GO_LDFLAGS=-linkmode external -extldflags '-static'" >> $GITHUB_ENV
107107
108108
- name: Go code test (CGO_ENABLED=${{ matrix.cgo_enabled }})
@@ -111,7 +111,7 @@ jobs:
111111
BUILD_TAGS="$GO_BUILD_TAGS"
112112
EXTRA_LDFLAGS="$GO_LDFLAGS"
113113
fi
114-
114+
115115
CGO_ENABLED=${{ matrix.cgo_enabled }} \
116116
go test ./... -v \
117117
-tags="${BUILD_TAGS}" \

0 commit comments

Comments
 (0)