Skip to content

Commit dd34f23

Browse files
author
David Grieser
committed
Fix build.
1 parent 9ab2c45 commit dd34f23

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/build.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,3 @@ jobs:
2222
with:
2323
version: v1.26.2
2424
args: release --clean --snapshot --skip=publish
25-
env:
26-
GOFLAGS: ${{ (github.ref_type == 'tag' && contains(github.ref_name, '-')) && '-gcflags="all=-N -l"' || '' }}

.github/workflows/release.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ jobs:
2424
version: v1.26.2
2525
args: release --clean
2626
env:
27-
GOFLAGS: ${{ (github.ref_type == 'tag' && contains(github.ref_name, '-')) && '-gcflags="all=-N -l"' || '' }}
2827
GITHUB_TOKEN: ${{ secrets.RELEASE_USER_TOKEN }}

.goreleaser.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ builds:
1111
main: main.go
1212
env:
1313
- CGO_ENABLED=0
14+
gcflags:
15+
- '{{- if (contains .Tag "-") -}}all=-N -l{{- end -}}'
1416
ldflags:
1517
- -s -w -X github.com/mittwald/mittnite/cmd.Version={{ .Version }} -X github.com/mittwald/mittnite/cmd.Commit={{ .Commit }} -X github.com/mittwald/mittnite/cmd.BuiltAt={{ .Date }}
1618
goos:

0 commit comments

Comments
 (0)