File tree Expand file tree Collapse file tree 2 files changed +10
-15
lines changed
Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,18 @@ before:
77 - go mod download
88
99builds :
10- - &COMMON
10+ - &BUILD
11+ id : default
1112 env :
1213 - CGO_ENABLED=0
1314 main : ./cmd/step/main.go
1415 flags :
1516 - -trimpath
1617 ldflags :
1718 - -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
18- -
19- << : *COMMON
20- id : default
19+ gcflags :
20+ - >-
21+ {{- if ne (index .Env "DEBUG") "" }}all=-N -l{{- end }}
2122 targets :
2223 - darwin_amd64
2324 - darwin_arm64
@@ -34,13 +35,9 @@ builds:
3435 - windows_amd64
3536 - windows_arm64
3637 binary : bin/step
37- -
38- << : *COMMON
39- id : debug
40- gcflags : all=-N -l
4138 -
4239 # This build is for S3 binaries that follow our naming convention there.
43- << : *COMMON
40+ << : *BUILD
4441 id : s3-versioned
4542 targets :
4643 - darwin_amd64
@@ -52,7 +49,7 @@ builds:
5249 binary : ' step_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
5350 -
5451 # This build is for S3 unversioned binaries that follow our naming convention there.
55- << : *COMMON
52+ << : *BUILD
5653 id : s3-unversioned
5754 targets :
5855 - darwin_amd64
@@ -67,7 +64,7 @@ builds:
6764 # It's exactly the same as the default build above, except:
6865 # - it only builds the archs we want to produce .deb and .rpm files for
6966 # - the name of the output binary is step-cli
70- << : *COMMON
67+ << : *BUILD
7168 id : nfpm
7269 goos :
7370 - linux
@@ -78,6 +75,7 @@ builds:
7875
7976archives :
8077 - &ARCHIVE
78+ id : default
8179 # Can be used to change the archive formats for specific GOOSs.
8280 # Most common use case is to archive as zip on Windows.
8381 # Default is empty.
Original file line number Diff line number Diff line change @@ -23,9 +23,6 @@ CGO_OVERRIDE?=CGO_ENABLED=0
2323
2424# which build id in .goreleaser.yml to build
2525GORELEASER_BUILD_ID? =default
26- ifdef DEBUG
27- GORELEASER_BUILD_ID=debug
28- endif
2926
3027all : lint test build
3128
@@ -120,7 +117,7 @@ $(PREFIX)/$(BINNAME):
120117
121118goreleaser :
122119 $Q mkdir -p $(PREFIX )
123- $Q $(GOOS_OVERRIDE ) $(CGO_OVERRIDE ) goreleaser build \
120+ $Q $(GOOS_OVERRIDE ) $(CGO_OVERRIDE ) DEBUG= $( DEBUG ) goreleaser build \
124121 --id $(GORELEASER_BUILD_ID ) \
125122 --snapshot \
126123 --single-target \
You can’t perform that action at this time.
0 commit comments