all repos — legit @ bf654749b4fa39c80daa14d37496e8825fef5c09

Unnamed repository; edit this file 'description' to name the repository.

.goreleaser.yaml (view raw)

 1version: 2
 2
 3builds:
 4  - binary: legit
 5    main: ./cmd/legit
 6    env:
 7      - CGO_ENABLED=0
 8    ldflags:
 9      - -s -w -X codeberg.org/maxwelljensen/legit/cmd/legit.main.buildDate={{.Date}} -X codeberg.org/maxwelljensen/legit/cmd/legit.main.version={{.Version}}
10    goos:
11      - linux
12      - darwin
13    goarch:
14      - arm64
15      - amd64
16      - "386"
17    dir: .
18
19archives:
20  - formats: [tar.gz]
21    # this name template makes the OS and Arch compatible with the results of `uname`.
22    name_template: >-
23      {{ .ProjectName }}_
24      {{- title .Os }}_
25      {{- if eq .Arch "amd64" }}x86_64
26      {{- else if eq .Arch "386" }}i386
27      {{- else }}{{ .Arch }}{{ end }}
28      {{- if .Arm }}v{{ .Arm }}{{ end }}      
29
30changelog:
31  sort: asc
32  filters:
33    exclude:
34      - "^docs:"
35      - "^test:"
36
37upx:
38  - # Templates: allowed.
39    enabled: true
40
41    # Filter by build ID.
42    ids: [build1, build2]
43
44    # Filter by GOOS.
45    goos: [linux, darwin]
46
47    # Filter by GOARCH.
48    goarch: [arm, amd64]
49
50    # Filter by GOARM.
51    goarm: [8]
52
53    # Filter by GOAMD64.
54    goamd64: [v1]
55
56    # Compress argument.
57    # Valid options are from '1' (faster) to '9' (better), and 'best'.
58    compress: best
59
60    # Whether to try LZMA (slower).
61    lzma: true
62
63    # Whether to try all methods and filters (slow).
64    brute: true