forked from unikraft/kraftkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser-staging.yaml
130 lines (124 loc) · 2.95 KB
/
.goreleaser-staging.yaml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#! .goreleaser.yaml
#@ binaries = {
#@ "kraft": {
#@ "darwin": ["amd64", "arm64"],
#@ "freebsd": ["amd64", "arm64"],
#@ "linux": ["amd64", "arm64"],
#@ },
#@ "runu": {
#@ "linux": ["amd64"],
#@ },
#@ }
changelog:
sort: asc
use: github
filters:
exclude:
- '^.*#[[:digit:]]+.*$'
groups:
- title: ⚠️ Breaking Changes
regexp: '^[[:xdigit:]]+: [[:lower:]]+(\(.*\))?!:.*$'
order: 1
- title: 🚀 New Features
regexp: '^[[:xdigit:]]+: feat(\(.*\))?:.*$'
order: 2
- title: 🐛 Bug Fixes
regexp: '^[[:xdigit:]]+: fix(\(.*\))?:.*$'
order: 3
- title: 📖 Docs
regexp: '^[[:xdigit:]]+: docs(\(.*\))?:.*$'
order: 4
- title: 🤖 Bumps
regexp: '^[[:xdigit:]]+: (gomod|build)\(deps\):.*$'
order: 5
- title: 🐒 Miscellaneous
order: 999
release:
github:
owner: unikraft
name: kraftkit
draft: false
prerelease: true
mode: replace
header: |
## KraftKit {{ .Tag }} ({{ .Date }})
This is the pre-release version of KraftKit.
name_template: 'v{{ .Version }}'
nfpms:
- vendor: Unikraft
id: nfpm-default
maintainer: Alexander Jung <[email protected]>
description: Build and use highly customized and ultra-lightweight unikernels.
license: BSD 3-clause
bindir: /usr/local/bin
homepage: https://kraftkit.sh
formats:
- deb
- rpm
- apk
recommends:
- bison
- build-essential
- flex
- git
- libncurses-dev
- qemu-system
- socat
- unzip
- wget
suggests:
- gcc-x86-64-linux-gnu
- g++-x86-64-linux-gnu
contents:
- src: scripts/kraftld
dst: /usr/local/bin/kraftld
builds:
#@ for bin, oses in binaries.items():
#@ for os, archs in oses.items():
#@ for arch in archs:
- id: #@ "{}-{}-{}".format(bin, os, arch)
binary: #@ bin
main: #@ "./cmd/{}".format(bin)
env:
#@ if bin == "runu":
- CGO_ENABLED=1
#@ else:
- CGO_ENABLED=0
#@ end
- GOMOD=kraftkit.sh
goos:
- #@ os
goarch:
- #@ arch
ldflags:
- -s -w
- -X {{ .Env.GOMOD }}/internal/version.version={{ .Version }}
- -X {{ .Env.GOMOD }}/internal/version.commit={{ .Commit }}
- -X {{ .Env.GOMOD }}/internal/version.buildTime={{ .Date }}
#@ end
#@ end
#@ end
archives:
#@ for os, archs in binaries["kraft"].items():
#@ for arch in archs:
- id: #@ "archive-kraft-{}-{}".format(os, arch)
format: tar.gz
name_template: kraft_{{ .Version }}_{{ .Os }}_{{ .Arch }}
builds:
- #@ "kraft-{}-{}".format(os, arch)
files:
- src: scripts/kraftld
strip_parent: true
info:
mode: 0755
#@ end
#@ end
#@ for os, archs in binaries["runu"].items():
#@ for arch in archs:
- id: #@ "archive-runu-{}-{}".format(os, arch)
format: tar.gz
name_template: runu_{{ .Version }}_{{ .Os }}_{{ .Arch }}
builds:
- #@ "runu-{}-{}".format(os, arch)
#@ end
#@ end