Skip to content

Commit

Permalink
🌱 Included arm64 release for darwin (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
naveensrinivasan authored Oct 25, 2021
1 parent 3d9c599 commit c3d51a7
Showing 1 changed file with 51 additions and 20 deletions.
71 changes: 51 additions & 20 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,68 @@
project_name: scorecard
env:
- GO111MODULE=on
- CGO_ENABLED=1
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
# List of combinations of GOOS + GOARCH + GOARM to ignore.
# Default is empty.
ignore:
- goos: darwin
goarch: 386
# CI should set VERSION_LDFLAGS to the output of ./scripts/version_ldflags
ldflags:
- -s -w {{.Env.VERSION_LDFLAGS}}
archives:
- replacements:
linux: Linux
386: i386
amd64: x86_64

- id: linux
binary: scorecard-linux-{{ .Arch }}
no_unique_dist_dir: true
goos:
- linux
goarch:
- amd64
- arm64
- 386
- arm
ldflags:
- -s -w {{.Env.VERSION_LDFLAGS}}

- id: darwin
binary: scorecard-darwin-{{ .Arch }}
no_unique_dist_dir: true
goos:
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w {{.Env.VERSION_LDFLAGS}}

- id: windows
binary: scorecard-windows-{{ .Arch }}
no_unique_dist_dir: true
goos:
- windows
goarch:
- amd64
- 386
- arm64
- arm
ldflags:
- -buildmode=exe
- -s -w {{.Env.VERSION_LDFLAGS}}

checksum:
# Algorithm to be used.
# Accepted options are sha256, sha512, sha1, crc32, md5, sha224 and sha384.
# Default is sha256.
name_template: "{{ .ProjectName }}_checksums.txt"
algorithm: sha512

snapshot:
name_template: SNAPSHOT-{{ .ShortCommit }}
changelog:
use: github
# Set it to true if you wish to skip the changelog generation.
# This may result in an empty release notes on GitHub/GitLab/Gitea.
skip: false
signs:
- artifacts: checksum
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]

release:
footer: |
### Thanks for all contributors!

0 comments on commit c3d51a7

Please sign in to comment.