Skip to content

Commit

Permalink
Add support for multiple architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
diasjorge committed Dec 18, 2021
1 parent 0af8277 commit e124738
Showing 1 changed file with 42 additions and 10 deletions.
52 changes: 42 additions & 10 deletions goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,47 @@
# goreleaser.yml
# Build customization
build:
goos:
- darwin
- linux
goarch:
- amd64
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod tidy

release:
prerelease: auto


builds:
- id: darwin-amd64
mod_timestamp: "{{ .CommitTimestamp }}"
goos:
- darwin
goarch:
- amd64
ldflags:
- "-s -w -X main.version={{.Version}} -X main.revision={{ .ShortCommit }}"

- id: darwin-arm64
mod_timestamp: "{{ .CommitTimestamp }}"
goos:
- darwin
goarch:
- arm64
ldflags:
- "-s -w -X main.version={{.Version}} -X main.revision={{ .ShortCommit }}"

- id:
goos:
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
ldflags:
- "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"

brews:
- github:
- tap:
owner: diasjorge
name: homebrew-tap
homepage: "https://github.com/diasjorge/roly/"
description: "Set AWS environment variables based on your profile"

0 comments on commit e124738

Please sign in to comment.