.goreleaser.yml raw

   1  version: 2
   2  
   3  before:
   4    hooks:
   5      - ./gen.sh
   6  
   7  builds:
   8    -
   9      id: "s2c"
  10      binary: s2c
  11      main: ./s2/cmd/s2c/main.go
  12      flags:
  13        - -trimpath
  14      env:
  15        - CGO_ENABLED=0
  16      goos:
  17        - aix
  18        - linux
  19        - freebsd
  20        - netbsd
  21        - windows
  22        - darwin
  23      goarch:
  24        - 386
  25        - amd64
  26        - arm
  27        - arm64
  28        - ppc64
  29        - ppc64le
  30        - mips64
  31        - mips64le
  32      goarm:
  33        - 7
  34    -
  35      id: "s2d"
  36      binary: s2d
  37      main: ./s2/cmd/s2d/main.go
  38      flags:
  39        - -trimpath
  40      env:
  41        - CGO_ENABLED=0
  42      goos:
  43        - aix
  44        - linux
  45        - freebsd
  46        - netbsd
  47        - windows
  48        - darwin
  49      goarch:
  50        - 386
  51        - amd64
  52        - arm
  53        - arm64
  54        - ppc64
  55        - ppc64le
  56        - mips64
  57        - mips64le
  58      goarm:
  59        - 7
  60    -
  61      id: "s2sx"
  62      binary: s2sx
  63      main: ./s2/cmd/_s2sx/main.go
  64      flags:
  65        - -modfile=s2sx.mod
  66        - -trimpath
  67      env:
  68        - CGO_ENABLED=0
  69      goos:
  70        - aix
  71        - linux
  72        - freebsd
  73        - netbsd
  74        - windows
  75        - darwin
  76      goarch:
  77        - 386
  78        - amd64
  79        - arm
  80        - arm64
  81        - ppc64
  82        - ppc64le
  83        - mips64
  84        - mips64le
  85      goarm:
  86        - 7
  87  
  88  archives:
  89    -
  90      id: s2-binaries
  91      name_template: "s2-{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
  92      format_overrides:
  93        - goos: windows
  94          format: zip
  95      files:
  96        - unpack/*
  97        - s2/LICENSE
  98        - s2/README.md
  99  checksum:
 100    name_template: 'checksums.txt'
 101  snapshot:
 102    version_template: "{{ .Tag }}-next"
 103  changelog:
 104    sort: asc
 105    filters:
 106      exclude:
 107      - '^doc:'
 108      - '^docs:'
 109      - '^test:'
 110      - '^tests:'
 111      - '^Update\sREADME.md'
 112  
 113  nfpms:
 114    -
 115      file_name_template: "s2_package__{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
 116      vendor: Klaus Post
 117      homepage: https://github.com/klauspost/compress
 118      maintainer: Klaus Post <klauspost@gmail.com>
 119      description: S2 Compression Tool
 120      license: BSD 3-Clause
 121      formats:
 122        - deb
 123        - rpm
 124