Skip to content

Commit

Permalink
Disable cgo when cross building distributables (#61)
Browse files Browse the repository at this point in the history
* ci: disable cgo when cross building binaries
  • Loading branch information
hielfx authored Jan 16, 2024
1 parent 6b305d7 commit 6e5c216
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ fi
rm -rf "${DIST_DIR}"
echo "==> Building distributables for the supported architectures..."

# Disable CGO when building.
export CGO_ENABLED=0

# MacOS
echo "-> MacOS x86_64"
GOOS=darwin GOARCH=amd64 go build -o "dist/${NAME}-darwin-x86_64-${VERSION}"
Expand Down

0 comments on commit 6e5c216

Please sign in to comment.