export CGO_ENABLED=0
The configuration used by goreleaser (which we previously used to build the release binaries) had set CGO_ENABLED=0. Since we don't specifically need this to be on, revert to that configuration.
Also add a few more go build flags to reduce the size of the produced binaries.
Ref:
- wangyoucao577/go-release-action#33
- https://github.com/wangyoucao577/go-release-action
- https://github.com/ente-io/cli/blob/main/.goreleaser.yaml#L18
Related:
NOTICE: This is a pre-release, and will be removed after testing completes.