-
Notifications
You must be signed in to change notification settings - Fork 112
/
.goreleaser.yml
91 lines (82 loc) · 2.47 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# GoReleaser configuration file.
#
# For more info, browse to http://goreleaser.com.
#
# NOTE: The GoReleaser is not meant to be run directly, but rather through
# Make's release-build target.
project_name: Oasis Core
env:
# Require use of Go modules.
- GO111MODULE=on
builds:
- id: oasis-node
main: ./oasis-node/main.go
binary: oasis-node
dir: go/
flags:
- -trimpath
# Build oasis-node with jemalloc tag (used by badgerdb).
# TODO: Use 'tags' attribute when GoReleaser is udpated to newer version:
# https://github.com/goreleaser/goreleaser/pull/2268
- -tags=jemalloc
ldflags:
# NOTE: At the moment, GoReleaser produces different binaries when
# releases are built from different git paths, unless -buildid= is added
# to ldflags.
# For more details, see: https://github.com/oasislabs/goreleaser/issues/1.
- -buildid=
- "{{.Env.GOLDFLAGS_VERSION}}"
goos:
- linux
goarch:
- amd64
- id: oasis-net-runner
main: ./oasis-net-runner/net-runner.go
binary: oasis-net-runner
dir: go/
flags:
- -trimpath
ldflags:
# NOTE: At the moment, GoReleaser produces different binaries when
# releases are built from different git paths, unless -buildid= is added
# to ldflags.
# For more details, see: https://github.com/oasislabs/goreleaser/issues/1.
- -buildid=
- "{{.Env.GOLDFLAGS_VERSION}}"
goos:
- linux
goarch:
- amd64
- id: oasis-remote-signer
main: ./oasis-remote-signer/main.go
binary: oasis-remote-signer
dir: go/
flags:
- -trimpath
ldflags:
# NOTE: At the moment, GoReleaser produces different binaries when
# releases are built from different git paths, unless -buildid= is added
# to ldflags.
# For more details, see: https://github.com/oasislabs/goreleaser/issues/1.
- -buildid=
- "{{.Env.GOLDFLAGS_VERSION}}"
goos:
- linux
goarch:
- amd64
archives:
- name_template: "{{replace .ProjectName \" \" \"_\" | tolower}}_{{.Version}}_{{.Os}}_{{.Arch}}"
wrap_in_directory: true
files:
- CHANGELOG.md
- README.md
- LICENSE
# NOTE: We assume that the Makefile release-build target prepares this binary.
- oasis-core-runtime-loader
checksum:
name_template: SHA256SUMS-{{.Version}}.txt
algorithm: sha256
snapshot:
name_template: "{{.Version}}-dev"
release:
name_template: "{{.ProjectName}} {{.Version}}"