blob: cff0c420e1c5a74e264f6ec1acc08863bacabdcd [file] [log] [blame]
Marcel van Lohuizen59018e62019-06-22 16:22:06 +02001# This is an example goreleaser.yaml file with some sane defaults.
2# Make sure to check the documentation at http://goreleaser.com
3before:
4 hooks:
5 - go mod download
6 # you may remove this if you don't need go generate
7 - go generate ./...
8 - go fmt ./...
9builds:
10- env:
11 - CGO_ENABLED=0
12 main: ./cmd/cue
13 binary: cue
14 ldflags:
15 - -s -w
16 - -X cuelang.org/go/cmd/cue/cmd.version={{.Version}}
17 # TODO: consider adding the following for a verbose mode
18 # - -X cuelang.org/go/cmd/cue/cmd.commit={{.ShortCommit}}
19 # - -X cuelang.org/go/cmd/cue/cmd.date={{.Date}}
20 # - -X cuelang.org/cmd/cue/cmd.date={{.Env.GOVERSION}}
21 goos:
22 # File and Issue to request including other platforms.
23 - darwin
24 - linux
25 - windows
26 goarch:
27 - amd64
28 - arm64
29
30archives:
31- replacements:
32 darwin: Darwin
33 linux: Linux
34 windows: Windows
35 386: i386
36 amd64: x86_64
37 files:
38 - LICENSE
39 - README.md
40 - doc/tutorial/**/*
41 - doc/ref/spec.md
42 format_overrides:
43 - goos: windows
44 format: zip
45
46checksum:
47 name_template: 'checksums.txt'
48
49snapshot:
50 name_template: "{{ .Tag }}-next"
51
52changelog:
53 sort: asc
54 filters:
55 exclude:
56 - '^test:'
Joel Longtine633834d2019-07-01 14:55:23 +000057
58brews:
59- github:
60 owner: cuelang
61 name: homebrew-tap
62 homepage: "https://github.com/cuelang/cue"
63 description: "CUE is an open source data constraint language which aims to simplify tasks involving defining and using data."
64 test: |
65 system "#{bin}/cue version"