-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): support arm64 build for linux (#303)
- Loading branch information
Showing
6 changed files
with
340 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# https://goreleaser.com/customization/builds/ | ||
builds: | ||
|
||
- id: gpud | ||
binary: gpud | ||
main: ./cmd/gpud | ||
env: | ||
- CGO_ENABLED=1 | ||
flags: | ||
- -v | ||
|
||
# NOTE: the "v" prefix from the git tag is stripped for the {{.Version}} | ||
ldflags: | ||
- -s -w | ||
- -X github.com/leptonai/gpud/version.BuildTimestamp={{.CommitTimestamp}} | ||
- -X github.com/leptonai/gpud/version.Revision={{.Commit}} | ||
- -X github.com/leptonai/gpud/version.Version=v{{.Version}} | ||
|
||
goos: | ||
- linux | ||
goarch: | ||
- arm64 | ||
|
||
# https://goreleaser.com/customization/archive/ | ||
archives: | ||
|
||
- id: gpud | ||
format: tgz | ||
|
||
# "builds" reference which build instances should be archived in this archive | ||
builds: | ||
- gpud | ||
|
||
name_template: >- | ||
{{ .Binary }}_v{{- .Version }}_{{- .Os }}_{{ .Arch }}_amzn2 | ||
# use zip for windows archives | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
# https://goreleaser.com/customization/changelog/ | ||
changelog: | ||
use: github-native | ||
|
||
release: | ||
draft: false | ||
replace_existing_draft: true | ||
make_latest: true | ||
mode: replace | ||
|
||
github: | ||
owner: leptonai | ||
name: gpud | ||
|
||
header: | | ||
## GPUd release notes ({{ .Date }}) | ||
Welcome to this new release! | ||
name_template: "{{.ProjectName}}-v{{.Version}}" | ||
|
||
# ref. https://goreleaser.com/customization/checksum/?h=checksum | ||
checksum: | ||
disable: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# https://goreleaser.com/customization/builds/ | ||
builds: | ||
|
||
- id: gpud | ||
binary: gpud | ||
main: ./cmd/gpud | ||
env: | ||
- CGO_ENABLED=1 | ||
flags: | ||
- -v | ||
|
||
# NOTE: the "v" prefix from the git tag is stripped for the {{.Version}} | ||
ldflags: | ||
- -s -w | ||
- -X github.com/leptonai/gpud/version.BuildTimestamp={{.CommitTimestamp}} | ||
- -X github.com/leptonai/gpud/version.Revision={{.Commit}} | ||
- -X github.com/leptonai/gpud/version.Version=v{{.Version}} | ||
|
||
goos: | ||
- linux | ||
goarch: | ||
- arm64 | ||
|
||
# https://goreleaser.com/customization/archive/ | ||
archives: | ||
|
||
- id: gpud | ||
format: tgz | ||
|
||
# "builds" reference which build instances should be archived in this archive | ||
builds: | ||
- gpud | ||
|
||
name_template: >- | ||
{{ .Binary }}_v{{- .Version }}_{{- .Os }}_{{ .Arch }}_amzn2023 | ||
# use zip for windows archives | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
# https://goreleaser.com/customization/changelog/ | ||
changelog: | ||
use: github-native | ||
|
||
release: | ||
draft: false | ||
replace_existing_draft: true | ||
make_latest: true | ||
mode: replace | ||
|
||
github: | ||
owner: leptonai | ||
name: gpud | ||
|
||
header: | | ||
## GPUd release notes ({{ .Date }}) | ||
Welcome to this new release! | ||
name_template: "{{.ProjectName}}-v{{.Version}}" | ||
|
||
# ref. https://goreleaser.com/customization/checksum/?h=checksum | ||
checksum: | ||
disable: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# https://goreleaser.com/customization/builds/ | ||
builds: | ||
|
||
- id: gpud | ||
binary: gpud | ||
main: ./cmd/gpud | ||
env: | ||
- CGO_ENABLED=1 | ||
flags: | ||
- -v | ||
|
||
# NOTE: the "v" prefix from the git tag is stripped for the {{.Version}} | ||
ldflags: | ||
- -s -w | ||
- -X github.com/leptonai/gpud/version.BuildTimestamp={{.CommitTimestamp}} | ||
- -X github.com/leptonai/gpud/version.Revision={{.Commit}} | ||
- -X github.com/leptonai/gpud/version.Version=v{{.Version}} | ||
|
||
goos: | ||
- linux | ||
goarch: | ||
- arm64 | ||
|
||
# https://goreleaser.com/customization/archive/ | ||
archives: | ||
|
||
- id: gpud | ||
format: tgz | ||
|
||
# "builds" reference which build instances should be archived in this archive | ||
builds: | ||
- gpud | ||
|
||
name_template: >- | ||
{{ .Binary }}_v{{- .Version }}_{{- .Os }}_{{ .Arch }}_ubuntu20.04 | ||
# use zip for windows archives | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
# https://goreleaser.com/customization/changelog/ | ||
changelog: | ||
use: github-native | ||
|
||
release: | ||
draft: false | ||
replace_existing_draft: true | ||
make_latest: true | ||
mode: replace | ||
|
||
github: | ||
owner: leptonai | ||
name: gpud | ||
|
||
header: | | ||
## GPUd release notes ({{ .Date }}) | ||
Welcome to this new release! | ||
name_template: "{{.ProjectName}}-v{{.Version}}" | ||
|
||
# ref. https://goreleaser.com/customization/checksum/?h=checksum | ||
checksum: | ||
disable: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# https://goreleaser.com/customization/builds/ | ||
builds: | ||
|
||
- id: gpud | ||
binary: gpud | ||
main: ./cmd/gpud | ||
env: | ||
- CGO_ENABLED=1 | ||
flags: | ||
- -v | ||
|
||
# NOTE: the "v" prefix from the git tag is stripped for the {{.Version}} | ||
ldflags: | ||
- -s -w | ||
- -X github.com/leptonai/gpud/version.BuildTimestamp={{.CommitTimestamp}} | ||
- -X github.com/leptonai/gpud/version.Revision={{.Commit}} | ||
- -X github.com/leptonai/gpud/version.Version=v{{.Version}} | ||
|
||
goos: | ||
- linux | ||
goarch: | ||
- arm64 | ||
|
||
# https://goreleaser.com/customization/archive/ | ||
archives: | ||
|
||
- id: gpud | ||
format: tgz | ||
|
||
# "builds" reference which build instances should be archived in this archive | ||
builds: | ||
- gpud | ||
|
||
name_template: >- | ||
{{ .Binary }}_v{{- .Version }}_{{- .Os }}_{{ .Arch }}_ubuntu22.04 | ||
# use zip for windows archives | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
# https://goreleaser.com/customization/changelog/ | ||
changelog: | ||
use: github-native | ||
|
||
release: | ||
draft: false | ||
replace_existing_draft: true | ||
make_latest: true | ||
mode: replace | ||
|
||
github: | ||
owner: leptonai | ||
name: gpud | ||
|
||
header: | | ||
## GPUd release notes ({{ .Date }}) | ||
Welcome to this new release! | ||
name_template: "{{.ProjectName}}-v{{.Version}}" | ||
|
||
# ref. https://goreleaser.com/customization/checksum/?h=checksum | ||
checksum: | ||
disable: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# https://goreleaser.com/customization/builds/ | ||
builds: | ||
|
||
- id: gpud | ||
binary: gpud | ||
main: ./cmd/gpud | ||
env: | ||
- CGO_ENABLED=1 | ||
flags: | ||
- -v | ||
|
||
# NOTE: the "v" prefix from the git tag is stripped for the {{.Version}} | ||
ldflags: | ||
- -s -w | ||
- -X github.com/leptonai/gpud/version.BuildTimestamp={{.CommitTimestamp}} | ||
- -X github.com/leptonai/gpud/version.Revision={{.Commit}} | ||
- -X github.com/leptonai/gpud/version.Version=v{{.Version}} | ||
|
||
goos: | ||
- linux | ||
goarch: | ||
- arm64 | ||
|
||
# https://goreleaser.com/customization/archive/ | ||
archives: | ||
|
||
- id: gpud | ||
format: tgz | ||
|
||
# "builds" reference which build instances should be archived in this archive | ||
builds: | ||
- gpud | ||
|
||
name_template: >- | ||
{{ .Binary }}_v{{- .Version }}_{{- .Os }}_{{ .Arch }}_ubuntu24.04 | ||
# use zip for windows archives | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
# https://goreleaser.com/customization/changelog/ | ||
changelog: | ||
use: github-native | ||
|
||
release: | ||
draft: false | ||
replace_existing_draft: true | ||
make_latest: true | ||
mode: replace | ||
|
||
github: | ||
owner: leptonai | ||
name: gpud | ||
|
||
header: | | ||
## GPUd release notes ({{ .Date }}) | ||
Welcome to this new release! | ||
name_template: "{{.ProjectName}}-v{{.Version}}" | ||
|
||
# ref. https://goreleaser.com/customization/checksum/?h=checksum | ||
checksum: | ||
disable: true |