From 2ba309636f96d8a1f28bb7cb7baea1bb40c2fc2d Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sun, 17 May 2026 12:19:33 -0500 Subject: [PATCH] set CGO enabled for native go builds --- .github/workflows/release-showbridge.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-showbridge.yaml b/.github/workflows/release-showbridge.yaml index 30d6740..eefd989 100644 --- a/.github/workflows/release-showbridge.yaml +++ b/.github/workflows/release-showbridge.yaml @@ -32,7 +32,7 @@ jobs: run: echo "SHOWBRIDGE_VERSION=${SHOWBRIDGE_VERSION#v}" >> $GITHUB_ENV - name: build run: | - go build -o showbridge -ldflags="-s -w -X main.version=${SHOWBRIDGE_VERSION}-${SHORT_COMMIT}" ./cmd/showbridge + CGO_ENABLED=1 go build -o showbridge -ldflags="-s -w -X main.version=${SHOWBRIDGE_VERSION}-${SHORT_COMMIT}" ./cmd/showbridge tar -czf showbridge_${SHOWBRIDGE_VERSION}_linux-amd64.tar.gz showbridge - name: upload linux artifacts uses: actions/upload-artifact@v7 @@ -63,7 +63,7 @@ jobs: run: echo "SHOWBRIDGE_VERSION=${SHOWBRIDGE_VERSION#v}" >> $GITHUB_ENV - name: build run: | - go build -o showbridge -ldflags="-s -w -X main.version=${SHOWBRIDGE_VERSION}-${SHORT_COMMIT}" ./cmd/showbridge + CGO_ENABLED=1 go build -o showbridge -ldflags="-s -w -X main.version=${SHOWBRIDGE_VERSION}-${SHORT_COMMIT}" ./cmd/showbridge tar -czf showbridge_${SHOWBRIDGE_VERSION}_linux-arm64.tar.gz showbridge - name: upload linux artifacts uses: actions/upload-artifact@v7