Skip to content

Commit 5c828e1

Browse files
authored
stable release: CGO=0
Ensure cgo-free release builds and add local cross-compile script
2 parents 1bde312 + bb7ae03 commit 5c828e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
ext=""
4747
if [ "${{ matrix.goos }}" = "windows" ]; then ext=".exe"; fi
4848
mkdir -p dist
49-
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
49+
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
50+
-tags netgo \
5051
-ldflags "-X github.com/matveynator/chicha-ip-proxy/pkg/version.Number=${VERSION}" \
5152
-o "dist/chicha-ip-proxy-${VERSION}-${{ matrix.goos }}-${{ matrix.goarch }}${ext}"
5253
@@ -127,4 +128,3 @@ PY
127128
files: upload/chicha-ip-proxy-*
128129
env:
129130
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130-

0 commit comments

Comments
 (0)