.goreleaser.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # This is an example goreleaser.yaml file with some sane defaults.
  2. # Make sure to check the documentation at http://goreleaser.com
  3. builds:
  4. -
  5. id: "cpuid"
  6. binary: cpuid
  7. main: ./cmd/cpuid/main.go
  8. env:
  9. - CGO_ENABLED=0
  10. flags:
  11. - -ldflags=-s -w
  12. goos:
  13. - aix
  14. - linux
  15. - freebsd
  16. - netbsd
  17. - windows
  18. - darwin
  19. goarch:
  20. - 386
  21. - amd64
  22. - arm64
  23. goarm:
  24. - 7
  25. archives:
  26. -
  27. id: cpuid
  28. name_template: "cpuid-{{ .Os }}_{{ .Arch }}_{{ .Version }}"
  29. replacements:
  30. aix: AIX
  31. darwin: OSX
  32. linux: Linux
  33. windows: Windows
  34. 386: i386
  35. amd64: x86_64
  36. freebsd: FreeBSD
  37. netbsd: NetBSD
  38. format_overrides:
  39. - goos: windows
  40. format: zip
  41. files:
  42. - LICENSE
  43. checksum:
  44. name_template: 'checksums.txt'
  45. snapshot:
  46. name_template: "{{ .Tag }}-next"
  47. changelog:
  48. sort: asc
  49. filters:
  50. exclude:
  51. - '^doc:'
  52. - '^docs:'
  53. - '^test:'
  54. - '^tests:'
  55. - '^Update\sREADME.md'
  56. nfpms:
  57. -
  58. file_name_template: "cpuid_package_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
  59. vendor: Klaus Post
  60. homepage: https://github.com/klauspost/cpuid
  61. maintainer: Klaus Post <klauspost@gmail.com>
  62. description: CPUID Tool
  63. license: BSD 3-Clause
  64. formats:
  65. - deb
  66. - rpm
  67. replacements:
  68. darwin: Darwin
  69. linux: Linux
  70. freebsd: FreeBSD
  71. amd64: x86_64