Skip to content

Commit 7ee16c8

Browse files
authored
Merge pull request #37 from liquidmetal-dev/local_make
feat: update goreleaser build
2 parents 3a96401 + 9308325 commit 7ee16c8

File tree

4 files changed

+73
-18
lines changed

4 files changed

+73
-18
lines changed

.goreleaser.yaml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,32 @@ builds:
1111
goos:
1212
- linux
1313
- darwin
14+
- windows
1415

1516
archives:
16-
- format: tar.gz
17-
# this name template makes the OS and Arch compatible with the results of `uname`.
18-
name_template: >-
19-
{{ .ProjectName }}_
20-
{{- title .Os }}_
21-
{{- if eq .Arch "amd64" }}x86_64
22-
{{- else if eq .Arch "386" }}i386
23-
{{- else }}{{ .Arch }}{{ end }}
24-
{{- if .Arm }}v{{ .Arm }}{{ end }}
25-
# use zip for windows archives
26-
format_overrides:
17+
- format_overrides:
2718
- goos: windows
28-
format: zip
19+
formats: ["zip"]
20+
2921
checksum:
30-
name_template: 'checksums.txt'
31-
snapshot:
32-
name_template: "{{ incpatch .Version }}-next"
22+
name_template: "checksums.txt"
23+
3324
release:
3425
draft: true
3526
prerelease: auto
27+
3628
changelog:
3729
sort: asc
3830
filters:
3931
exclude:
4032
- "^docs:"
4133
- "^test:"
34+
35+
nfpms:
36+
- maintainer: Richard Case <richard@liquidmetal.dev>
37+
vendor: Liquid Metal Project
38+
homepage: https://liquidmetal.dev/
39+
formats:
40+
- apk
41+
- deb
42+
- rpm

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
3+
.PHONY: build
4+
build: ## Build the binaries
5+
goreleaser release --snapshot --clean

devbox.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.6/.schema/devbox.schema.json",
33
"packages": [
4-
"go@1.22.9"
4+
"go@1.22.9",
5+
"goreleaser@latest"
56
],
67
"shell": {
78
"env": {
89
"GOPATH": "$HOME/go/",
9-
"PATH": "$PATH:$HOME/go/bin"
10+
"PATH": "$PATH:$HOME/go/bin"
1011
},
1112
"init_hook": [
1213
"export \"GOROOT=$(go env GOROOT)\""
@@ -15,4 +16,4 @@
1516
"run_test": "go run main.go"
1617
}
1718
}
18-
}
19+
}

devbox.lock

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,54 @@
4848
"store_path": "/nix/store/frc5188kgv3ws0n999c7cy5vi2f8k4jp-go-1.22.9"
4949
}
5050
}
51+
},
52+
"goreleaser@latest": {
53+
"last_modified": "2025-02-12T00:10:52Z",
54+
"resolved": "github:NixOS/nixpkgs/83a2581c81ff5b06f7c1a4e7cc736a455dfcf7b4#goreleaser",
55+
"source": "devbox-search",
56+
"version": "2.7.0",
57+
"systems": {
58+
"aarch64-darwin": {
59+
"outputs": [
60+
{
61+
"name": "out",
62+
"path": "/nix/store/rgp8lyvjd2jc0n1hf8xwlcih2nh58p55-goreleaser-2.7.0",
63+
"default": true
64+
}
65+
],
66+
"store_path": "/nix/store/rgp8lyvjd2jc0n1hf8xwlcih2nh58p55-goreleaser-2.7.0"
67+
},
68+
"aarch64-linux": {
69+
"outputs": [
70+
{
71+
"name": "out",
72+
"path": "/nix/store/8qlyfy6cp0s42h7p9qm736ygvkklfy2q-goreleaser-2.7.0",
73+
"default": true
74+
}
75+
],
76+
"store_path": "/nix/store/8qlyfy6cp0s42h7p9qm736ygvkklfy2q-goreleaser-2.7.0"
77+
},
78+
"x86_64-darwin": {
79+
"outputs": [
80+
{
81+
"name": "out",
82+
"path": "/nix/store/hpb3rvn4y1sblrcnb636hyr7vksc64a5-goreleaser-2.7.0",
83+
"default": true
84+
}
85+
],
86+
"store_path": "/nix/store/hpb3rvn4y1sblrcnb636hyr7vksc64a5-goreleaser-2.7.0"
87+
},
88+
"x86_64-linux": {
89+
"outputs": [
90+
{
91+
"name": "out",
92+
"path": "/nix/store/16dslcqzgwsalmhxz941v2xlvx92nhc5-goreleaser-2.7.0",
93+
"default": true
94+
}
95+
],
96+
"store_path": "/nix/store/16dslcqzgwsalmhxz941v2xlvx92nhc5-goreleaser-2.7.0"
97+
}
98+
}
5199
}
52100
}
53101
}

0 commit comments

Comments
 (0)