.goreleaser.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # This is an example .goreleaser.yml file with some sensible defaults.
  2. # Make sure to check the documentation at https://goreleaser.com
  3. before:
  4. hooks:
  5. # You may remove this if you don't use go modules.
  6. - go mod tidy
  7. # you may remove this if you don't need go generate
  8. # - go generate ./...
  9. builds:
  10. - env:
  11. - CGO_ENABLED=0
  12. main: ./cmd/gost
  13. targets:
  14. - darwin_amd64
  15. - darwin_arm64
  16. - linux_386
  17. - linux_amd64
  18. - linux_amd64_v3
  19. - linux_arm_5
  20. - linux_arm_6
  21. - linux_arm_7
  22. - linux_arm64
  23. - linux_mips_softfloat
  24. - linux_mips_hardfloat
  25. - linux_mipsle_softfloat
  26. - linux_mipsle_hardfloat
  27. - linux_mips64
  28. - linux_mips64le
  29. - linux_s390x
  30. - linux_riscv64
  31. - freebsd_386
  32. - freebsd_amd64
  33. - windows_386
  34. - windows_amd64
  35. - windows_amd64_v3
  36. - windows_arm64
  37. ldflags:
  38. - "-s -w -X 'main.version={{ .Tag }}'"
  39. archives:
  40. - format: tar.gz
  41. # use zip for windows archives
  42. format_overrides:
  43. - goos: windows
  44. format: zip
  45. checksum:
  46. name_template: 'checksums.txt'
  47. snapshot:
  48. name_template: "{{ incpatch .Version }}-next"
  49. changelog:
  50. sort: asc
  51. filters:
  52. exclude:
  53. - '^docs:'
  54. - '^test:'
  55. release:
  56. prerelease: auto
  57. mode: keep-existing
  58. # The lines beneath this are called `modelines`. See `:help modeline`
  59. # Feel free to remove those if you don't want/use them.
  60. # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
  61. # vim: set ts=2 sw=2 tw=0 fo=cnqoj