.goreleaser.yml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. env:
  2. - GO111MODULE=on
  3. - CGO_ENABLED=1
  4. - GOFLAGS=-mod=vendor
  5. - GOPROXY=off
  6. builds:
  7. - id: cfssl-darwin
  8. binary: cfssl
  9. env:
  10. - CC=o64-clang
  11. - CXX=o64-clang++
  12. goos:
  13. - darwin
  14. goarch:
  15. - amd64
  16. - arm64
  17. main: ./cmd/cfssl
  18. ldflags:
  19. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  20. - id: cfssl-linux
  21. binary: cfssl
  22. goos:
  23. - linux
  24. goarch:
  25. - amd64
  26. main: ./cmd/cfssl
  27. ldflags:
  28. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  29. - -linkmode external -extldflags "-static"
  30. env:
  31. - CC=/usr/bin/musl-gcc
  32. - id: cfssl-windows
  33. binary: cfssl
  34. env:
  35. - CC=x86_64-w64-mingw32-gcc
  36. - CXX=x86_64-w64-mingw32-g++
  37. goos:
  38. - windows
  39. goarch:
  40. - amd64
  41. main: ./cmd/cfssl
  42. ldflags:
  43. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  44. - id: cfssl-bundle-darwin
  45. binary: cfssl-bundle
  46. env:
  47. - CC=o64-clang
  48. - CXX=o64-clang++
  49. goos:
  50. - darwin
  51. goarch:
  52. - amd64
  53. main: ./cmd/cfssl-bundle
  54. ldflags:
  55. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  56. - id: cfssl-bundle-linux
  57. binary: cfssl-bundle
  58. goos:
  59. - linux
  60. goarch:
  61. - amd64
  62. main: ./cmd/cfssl-bundle
  63. ldflags:
  64. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  65. - -linkmode external -extldflags "-static"
  66. env:
  67. - CC=/usr/bin/musl-gcc
  68. - id: cfssl-bundle-windows
  69. binary: cfssl-bundle
  70. env:
  71. - CC=x86_64-w64-mingw32-gcc
  72. - CXX=x86_64-w64-mingw32-g++
  73. goos:
  74. - windows
  75. goarch:
  76. - amd64
  77. main: ./cmd/cfssl-bundle
  78. ldflags:
  79. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  80. - id: cfssl-certinfo-darwin
  81. binary: cfssl-certinfo
  82. env:
  83. - CC=o64-clang
  84. - CXX=o64-clang++
  85. goos:
  86. - darwin
  87. goarch:
  88. - amd64
  89. main: ./cmd/cfssl-certinfo
  90. ldflags:
  91. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  92. - id: cfssl-certinfo-linux
  93. binary: cfssl-certinfo
  94. goos:
  95. - linux
  96. goarch:
  97. - amd64
  98. main: ./cmd/cfssl-certinfo
  99. ldflags:
  100. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  101. - -linkmode external -extldflags "-static"
  102. env:
  103. - CC=/usr/bin/musl-gcc
  104. - id: cfssl-certinfo-windows
  105. binary: cfssl-certinfo
  106. env:
  107. - CC=x86_64-w64-mingw32-gcc
  108. - CXX=x86_64-w64-mingw32-g++
  109. goos:
  110. - windows
  111. goarch:
  112. - amd64
  113. main: ./cmd/cfssl-certinfo
  114. ldflags:
  115. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  116. - id: cfssl-newkey-darwin
  117. binary: cfssl-newkey
  118. env:
  119. - CC=o64-clang
  120. - CXX=o64-clang++
  121. goos:
  122. - darwin
  123. goarch:
  124. - amd64
  125. main: ./cmd/cfssl-newkey
  126. ldflags:
  127. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  128. - id: cfssl-newkey-linux
  129. binary: cfssl-newkey
  130. goos:
  131. - linux
  132. goarch:
  133. - amd64
  134. main: ./cmd/cfssl-newkey
  135. ldflags:
  136. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  137. - -linkmode external -extldflags "-static"
  138. env:
  139. - CC=/usr/bin/musl-gcc
  140. - id: cfssl-newkey-windows
  141. binary: cfssl-newkey
  142. env:
  143. - CC=x86_64-w64-mingw32-gcc
  144. - CXX=x86_64-w64-mingw32-g++
  145. goos:
  146. - windows
  147. goarch:
  148. - amd64
  149. main: ./cmd/cfssl-newkey
  150. ldflags:
  151. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  152. - id: cfssl-scan-darwin
  153. binary: cfssl-scan
  154. env:
  155. - CC=o64-clang
  156. - CXX=o64-clang++
  157. goos:
  158. - darwin
  159. goarch:
  160. - amd64
  161. main: ./cmd/cfssl-scan
  162. ldflags:
  163. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  164. - id: cfssl-scan-linux
  165. binary: cfssl-scan
  166. goos:
  167. - linux
  168. goarch:
  169. - amd64
  170. main: ./cmd/cfssl-scan
  171. ldflags:
  172. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  173. - -linkmode external -extldflags "-static"
  174. env:
  175. - CC=/usr/bin/musl-gcc
  176. - id: cfssl-scan-windows
  177. binary: cfssl-scan
  178. env:
  179. - CC=x86_64-w64-mingw32-gcc
  180. - CXX=x86_64-w64-mingw32-g++
  181. goos:
  182. - windows
  183. goarch:
  184. - amd64
  185. main: ./cmd/cfssl-scan
  186. ldflags:
  187. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  188. - id: cfssljson-darwin
  189. binary: cfssljson
  190. env:
  191. - CC=o64-clang
  192. - CXX=o64-clang++
  193. goos:
  194. - darwin
  195. goarch:
  196. - amd64
  197. main: ./cmd/cfssljson
  198. ldflags:
  199. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  200. - id: cfssljson-linux
  201. binary: cfssljson
  202. goos:
  203. - linux
  204. goarch:
  205. - amd64
  206. main: ./cmd/cfssljson
  207. ldflags:
  208. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  209. - -linkmode external -extldflags "-static"
  210. env:
  211. - CC=/usr/bin/musl-gcc
  212. - id: cfssljson-windows
  213. binary: cfssljson
  214. env:
  215. - CC=x86_64-w64-mingw32-gcc
  216. - CXX=x86_64-w64-mingw32-g++
  217. goos:
  218. - windows
  219. goarch:
  220. - amd64
  221. main: ./cmd/cfssljson
  222. ldflags:
  223. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  224. - id: mkbundle-darwin
  225. binary: mkbundle
  226. env:
  227. - CC=o64-clang
  228. - CXX=o64-clang++
  229. goos:
  230. - darwin
  231. goarch:
  232. - amd64
  233. main: ./cmd/mkbundle
  234. ldflags:
  235. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  236. - id: mkbundle-linux
  237. binary: mkbundle
  238. goos:
  239. - linux
  240. goarch:
  241. - amd64
  242. main: ./cmd/mkbundle
  243. ldflags:
  244. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  245. - -linkmode external -extldflags "-static"
  246. env:
  247. - CC=/usr/bin/musl-gcc
  248. - id: mkbundle-windows
  249. binary: mkbundle
  250. env:
  251. - CC=x86_64-w64-mingw32-gcc
  252. - CXX=x86_64-w64-mingw32-g++
  253. goos:
  254. - windows
  255. goarch:
  256. - amd64
  257. main: ./cmd/mkbundle
  258. ldflags:
  259. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  260. - id: multirootca-darwin
  261. binary: multirootca
  262. env:
  263. - CC=o64-clang
  264. - CXX=o64-clang++
  265. goos:
  266. - darwin
  267. goarch:
  268. - amd64
  269. main: ./cmd/multirootca
  270. ldflags:
  271. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  272. - id: multirootca-linux
  273. binary: multirootca
  274. goos:
  275. - linux
  276. goarch:
  277. - amd64
  278. main: ./cmd/multirootca
  279. ldflags:
  280. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  281. - -linkmode external -extldflags "-static"
  282. env:
  283. - CC=/usr/bin/musl-gcc
  284. - id: multirootca-windows
  285. binary: multirootca
  286. env:
  287. - CC=x86_64-w64-mingw32-gcc
  288. - CXX=x86_64-w64-mingw32-g++
  289. goos:
  290. - windows
  291. goarch:
  292. - amd64
  293. main: ./cmd/multirootca
  294. ldflags:
  295. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  296. archives:
  297. - format: binary
  298. allow_different_binary_count: true # https://github.com/goreleaser/goreleaser/pull/1841
  299. release:
  300. github:
  301. owner: cloudflare
  302. name: cfssl
  303. prerelease: auto
  304. changelog:
  305. sort: asc