.goreleaser.prerelease.yaml 647 B

123456789101112131415161718192021222324252627282930313233
  1. before:
  2. hooks:
  3. # You may remove this if you don't use go modules.
  4. - go mod tidy
  5. builds:
  6. - main: ./
  7. env:
  8. - CGO_ENABLED=1
  9. ldflags:
  10. - -s -w
  11. targets:
  12. - linux_amd64
  13. binary: '{{ .ProjectName }}'
  14. - main: ./cli
  15. id: 'nmctl'
  16. env:
  17. - CGO_ENABLED=0
  18. ldflags:
  19. - -s -w
  20. targets:
  21. - linux_amd64
  22. - linux_arm64
  23. - darwin_amd64
  24. - darwin_arm64
  25. - windows_amd64
  26. binary: 'nmctl'
  27. archives:
  28. - format: binary
  29. name_template: '{{ .Binary }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}'
  30. release:
  31. prerelease: true