before:
  hooks:
    - go mod tidy

dist: dist-darwin

builds:
  - main: .
    binary: sq
    env:
      - CGO_ENABLED=1
    goos:
      - darwin
    goarch:
      - amd64
      - arm64
    ldflags:
      - -s -w
      - -X github.com/neilotoole/sq/cli/buildinfo.Version=v{{ .Version }}
      - -X github.com/neilotoole/sq/cli/buildinfo.Commit={{ .ShortCommit }}
      - -X github.com/neilotoole/sq/cli/buildinfo.Timestamp={{ .Date }}
    tags:
      - sqlite_vtable
      - sqlite_stat4
      - sqlite_fts5
      - sqlite_introspect
      - sqlite_json
      - sqlite_math_functions

archives:
  - format: binary