Skip to content

Commit 290e429

Browse files
committed
fix: build Linux binaries with CGO_ENABLED=0 for glibc compatibility
1 parent afd5ea6 commit 290e429

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
env:
4141
VERSION: ${{ steps.version.outputs.version }}
4242
run: |
43-
echo "🔨 Building Linux AMD64..."
44-
GOOS=linux GOARCH=amd64 go build \
43+
echo "🔨 Building Linux AMD64 (static)..."
44+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
4545
-ldflags "-X main.VERSION=$VERSION -s -w" \
4646
-trimpath \
4747
-o catops-linux-amd64 \
@@ -53,8 +53,8 @@ jobs:
5353
env:
5454
VERSION: ${{ steps.version.outputs.version }}
5555
run: |
56-
echo "🔨 Building Linux ARM64..."
57-
GOOS=linux GOARCH=arm64 go build \
56+
echo "🔨 Building Linux ARM64 (static)..."
57+
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build \
5858
-ldflags "-X main.VERSION=$VERSION -s -w" \
5959
-trimpath \
6060
-o catops-linux-arm64 \

0 commit comments

Comments
 (0)