Skip to content

Commit eae7a71

Browse files
committed
support multi os/arch
1 parent 408eea4 commit eae7a71

File tree

1 file changed

+81
-57
lines changed

1 file changed

+81
-57
lines changed

goreleaser.yaml

+81-57
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ builds:
1010
env:
1111
- CGO_ENABLED=0
1212
goos:
13+
- darwin
1314
- linux
15+
- windows
1416
goarch:
1517
- amd64
18+
- 386
19+
- arm
1620
- arm64
21+
goarm:
22+
- 7
1723
- main: drivers/sqlboiler-psql/main.go
1824
id: sqlboiler-psql
1925
binary: sqlboiler-psql
@@ -24,10 +30,16 @@ builds:
2430
env:
2531
- CGO_ENABLED=0
2632
goos:
33+
- darwin
2734
- linux
35+
- windows
2836
goarch:
2937
- amd64
38+
- 386
39+
- arm
3040
- arm64
41+
goarm:
42+
- 7
3143
- main: drivers/sqlboiler-mysql/main.go
3244
id: sqlboiler-mysql
3345
binary: sqlboiler-mysql
@@ -38,10 +50,16 @@ builds:
3850
env:
3951
- CGO_ENABLED=0
4052
goos:
53+
- darwin
4154
- linux
55+
- windows
4256
goarch:
4357
- amd64
58+
- 386
59+
- arm
4460
- arm64
61+
goarm:
62+
- 7
4563
- main: drivers/sqlboiler-mssql/main.go
4664
id: sqlboiler-mssql
4765
binary: sqlboiler-mssql
@@ -52,69 +70,75 @@ builds:
5270
env:
5371
- CGO_ENABLED=0
5472
goos:
73+
- darwin
5574
- linux
75+
- windows
5676
goarch:
5777
- amd64
78+
- 386
79+
- arm
5880
- arm64
81+
goarm:
82+
- 7
5983

60-
#nfpms:
61-
# -
62-
# formats:
63-
# - apk
64-
# - deb
65-
# - rpm
66-
# vendor: "sqlboiler"
67-
# homepage: "https://github.com/volatiletech/sqlboiler"
68-
# maintainer: "Tomoya Amachi <tomoya.amachi@gmail.com>"
69-
# license: "BSD-3"
70-
# description: "Generate a Go ORM tailored to your database schema."
71-
# file_name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
72-
# replacements:
73-
# amd64: 64bit
74-
# 386: 32bit
75-
# arm: ARM
76-
# arm64: ARM64
77-
# darwin: macOS
78-
# linux: Linux
79-
# windows: Windows
80-
# openbsd: OpenBSD
81-
# netbsd: NetBSD
82-
# freebsd: FreeBSD
83-
# dragonfly: DragonFlyBSD
84-
#
85-
#archives:
86-
# -
87-
# format: tar.gz
88-
# format_overrides:
89-
# - goos: windows
90-
# format: zip
91-
# name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
92-
# replacements:
93-
# amd64: 64bit
94-
# 386: 32bit
95-
# arm: ARM
96-
# arm64: ARM64
97-
# darwin: macOS
98-
# linux: Linux
99-
# windows: Windows
100-
# openbsd: OpenBSD
101-
# netbsd: NetBSD
102-
# freebsd: FreeBSD
103-
# dragonfly: DragonFlyBSD
104-
# files:
105-
# - README.md
106-
# - LICENSE
84+
nfpms:
85+
-
86+
formats:
87+
- apk
88+
- deb
89+
- rpm
90+
vendor: "sqlboiler"
91+
homepage: "https://github.com/volatiletech/sqlboiler"
92+
maintainer: "Tomoya Amachi <tomoya.amachi@gmail.com>"
93+
license: "BSD-3"
94+
description: "Generate a Go ORM tailored to your database schema."
95+
file_name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
96+
replacements:
97+
amd64: 64bit
98+
386: 32bit
99+
arm: ARM
100+
arm64: ARM64
101+
darwin: macOS
102+
linux: Linux
103+
windows: Windows
104+
openbsd: OpenBSD
105+
netbsd: NetBSD
106+
freebsd: FreeBSD
107+
dragonfly: DragonFlyBSD
107108

108-
#brews:
109-
# -
110-
# tap:
111-
# owner: goodwithtech
112-
# name: homebrew-r
113-
# folder: Formula
114-
# homepage: "https://github.com/volatiletech/sqlboiler"
115-
# description: "Generate a Go ORM tailored to your database schema."
116-
# test: |
117-
# system "#{bin}/program --version"
109+
archives:
110+
-
111+
format: tar.gz
112+
format_overrides:
113+
- goos: windows
114+
format: zip
115+
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
116+
replacements:
117+
amd64: 64bit
118+
386: 32bit
119+
arm: ARM
120+
arm64: ARM64
121+
darwin: macOS
122+
linux: Linux
123+
windows: Windows
124+
openbsd: OpenBSD
125+
netbsd: NetBSD
126+
freebsd: FreeBSD
127+
dragonfly: DragonFlyBSD
128+
files:
129+
- README.md
130+
- LICENSE
131+
132+
brews:
133+
-
134+
tap:
135+
owner: goodwithtech
136+
name: homebrew-r
137+
folder: Formula
138+
homepage: "https://github.com/volatiletech/sqlboiler"
139+
description: "Generate a Go ORM tailored to your database schema."
140+
test: |
141+
system "#{bin}/program --version"
118142
119143
dockers:
120144
- image_templates:

0 commit comments

Comments
 (0)