File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 99 ldflags :
1010 - -s -w
1111 -X main.VERSION={{.Version}}
12+ # Include the default settings from https://goreleaser.com/#builds
13+ # Also include static compilation
14+ # ldflags: -d -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -extldflags "-static"
15+ # Ensure the binary is static
16+ env :
17+ - CGO_ENABLED=0
1218archives :
1319 - format : binary
1420 name_template : " {{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
Original file line number Diff line number Diff line change 1313 - gofmt : ret=$(find . -name '*.go' | xargs gofmt -d) && echo "$ret" && test -z "$ret"
1414 - test-setup : go install gotest.tools/gotestsum@latest
1515 - test : gotestsum --format testname --jsonfile ${SD_ARTIFACTS_DIR}/report.json -- -coverprofile=${SD_ARTIFACTS_DIR}/coverage.out ./...
16- - build : CGO_ENABLED=0 go build -a -o store-cli
16+ - build : go build -a -o store-cli
1717 - test-release : " curl -sL https://git.io/goreleaser | bash -s -- --snapshot"
1818
1919 deploy :
You can’t perform that action at this time.
0 commit comments