mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-28 14:01:04 +00:00
releaser: Get ldflags for build date etc. in line for all builds
Closes #5539 Closes ##5388
This commit is contained in:
parent
f7691fe965
commit
c04030b14c
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ builds:
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
- binary: hugo
|
- binary: hugo
|
||||||
ldflags: -s -w -X github.com/gohugoio/hugo/hugolib.BuildDate={{.Date}}
|
ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }}
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=1
|
- CGO_ENABLED=1
|
||||||
- CC=o64-clang
|
- CC=o64-clang
|
||||||
|
@ -29,7 +29,7 @@ builds:
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
- binary: hugo
|
- binary: hugo
|
||||||
ldflags: -s -w -X github.com/gohugoio/hugo/hugolib.BuildDate={{.Date}}
|
ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }}
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=1
|
- CGO_ENABLED=1
|
||||||
flags:
|
flags:
|
||||||
|
|
Loading…
Reference in a new issue