Skip to content

Commit

Permalink
add support for linux/arm64 to console build
Browse files Browse the repository at this point in the history
  • Loading branch information
floreks committed Aug 17, 2023
1 parent e75ed1e commit 452e482
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,39 +36,41 @@ builds:
overrides:
- goos: linux
goarch: arm64
tags: [linux]
tags: [ linux ]
env:
- CGO_ENABLED=0
- goos: windows
goarch: arm64
tags: [windows]
tags: [ windows ]
env:
- CGO_ENABLED=0
# Build CLI binary without embedded UI for linux. Required by our Console.
- id: plural-cli-console
targets: [linux_amd64]
targets:
- linux_amd64
- linux_arm64
ldflags:
- -s
- -w
- -X "github.com/pluralsh/plural/cmd/plural.Version={{.Version}}"
- -X "github.com/pluralsh/plural/cmd/plural.Commit={{.Commit}}"
- -X "github.com/pluralsh/plural/cmd/plural.Date={{.Date}}"
- -X "github.com/pluralsh/plural/pkg/scm.GitlabClientSecret={{.Env.GITLAB_CLIENT_SECRET}}"
tags: [linux]
tags: [ linux ]
env:
- CGO_ENABLED=0
binary: plural

archives:
- id: plural-cli
builds: [plural-cli]
builds: [ plural-cli ]
name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- title .Os }}_
{{- if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
- id: plural-cli-console
builds: [plural-cli-console]
builds: [ plural-cli-console ]
name_template: >-
{{ .ProjectName }}_console_{{ .Version }}_
{{- title .Os }}_
Expand Down Expand Up @@ -98,7 +100,7 @@ release:
brews:
- name: plural
ids: [plural-cli]
ids: [ plural-cli ]
tap:
owner: pluralsh
name: homebrew-plural
Expand Down

0 comments on commit 452e482

Please sign in to comment.