Skip to content

Commit 4ade10b

Browse files
committed
chore: add .goreleaser.yaml configuration and update .gitignore
1 parent c2d0a2c commit 4ade10b

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
/playground
55
node_modules
66
site
7+
# Added by goreleaser init:
8+
dist/
9+
.intentionally-empty-file.o
10+
target/

.goreleaser.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
4+
# The lines below are called `modelines`. See `:help modeline`
5+
# Feel free to remove those if you don't want/need to use them.
6+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
8+
9+
version: 2
10+
11+
before:
12+
hooks:
13+
# if you don't do these things before calling goreleaser, it might be a
14+
# good idea to do them here:
15+
- rustup default stable
16+
- cargo install --locked cargo-zigbuild
17+
- cargo fetch --locked
18+
19+
builds:
20+
- builder: rust
21+
flags:
22+
- --release
23+
targets:
24+
- x86_64-unknown-linux-gnu
25+
- x86_64-apple-darwin
26+
- x86_64-pc-windows-gnu
27+
- aarch64-unknown-linux-gnu
28+
- aarch64-apple-darwin
29+
30+
archives:
31+
- format: tar.gz
32+
# this name template makes the OS and Arch compatible with the results of `uname`.
33+
name_template: >-
34+
{{ .ProjectName }}_
35+
{{- title .Os }}_
36+
{{- if eq .Arch "amd64" }}x86_64
37+
{{- else if eq .Arch "386" }}i386
38+
{{- else }}{{ .Arch }}{{ end }}
39+
# use zip for windows archives
40+
format_overrides:
41+
- goos: windows
42+
format: zip
43+
44+
changelog:
45+
sort: asc
46+
filters:
47+
exclude:
48+
- "^docs:"
49+
- "^test:"
50+
51+
release:
52+
footer: >-
53+
54+
---
55+
56+
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).

0 commit comments

Comments
 (0)