Skip to content

Commit

Permalink
Document some goreleaser arcana
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-zorn committed Aug 14, 2024
1 parent e4a353c commit 3f1f0aa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ version: 2
project_name: ldcli

env:
- GO111MODULE=on
- CGO_ENABLED=1
- DOCKER_CLI_EXPERIMENTAL=enabled
- GO111MODULE=on # Ensure we aren't using anything in GOPATH when building
- CGO_ENABLED=1 # Needed for SQLite support
- DOCKER_CLI_EXPERIMENTAL=enabled # This is on by default in docker versions >= 20.10

builds:
- id: ldcli
Expand All @@ -19,13 +19,15 @@ builds:
- amd64
- arm64
ldflags:
- -s
- -w
- -s # Omit all symbol information to minimize binary size
- -w # Omit DWARF to minimize binary size
- -X 'main.version={{.Version}}'
ignore:
- goos: darwin
goarch: "386"
env:
# The below environment variables set up the c compiler toolchain for CGO.
# Templates are used to vary the toolchain based on OS & platform.
- TOOLCHAIN_BASE=
{{- if eq .Os "darwin" -}}
o
Expand Down

0 comments on commit 3f1f0aa

Please sign in to comment.