Skip to content

Commit

Permalink
macOS Universal binaries.
Browse files Browse the repository at this point in the history
Renamed Linux Intel package to remove space.
  • Loading branch information
bengarrett committed Oct 28, 2021
1 parent 7724eb9 commit 6171d02
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
-
name: Cache Go modules
uses: actions/cache@v1
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ zipcmt

# Dependency directories (remove the comment below to include it)
# vendor/

dist/
15 changes: 8 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ builds:
- id: FreeBSD
goos: ['freebsd']
goarch: ['amd64']
- id: Linux Intel
- id: Linux_Intel
goos: ['linux']
goarch: ['amd64']
- id: macOS
Expand All @@ -20,7 +20,10 @@ builds:
- id: Windows
goos: ['windows']
goarch: ['amd64']

universal_binaries:
- id: macOS
name_template: "{{ .ProjectName }}"
replace: true
archives:
- id: FreeBSD
builds: ['FreeBSD']
Expand All @@ -31,8 +34,8 @@ archives:
replacements:
amd64: Intel
freebsd: FreeBSD
- id: Linux Intel
builds: ['Linux Intel']
- id: Linux_Intel
builds: ['Linux_Intel']
format: tar.gz
files:
- none*
Expand All @@ -47,8 +50,6 @@ archives:
- none*
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
replacements:
arm64: M-series
amd64: Intel
darwin: macOS
- id: Windows
builds: ['Windows']
Expand All @@ -62,7 +63,7 @@ archives:

nfpms:
- id: Linux
builds: ['Linux Intel']
builds: ['Linux_Intel']
file_name_template: "{{ .ProjectName }}"
replacements:
amd64: Intel
Expand Down

0 comments on commit 6171d02

Please sign in to comment.