🌱 Included arm64 release for darwin (#1157)

This commit is contained in:
Naveen 2021-10-25 13:56:48 -05:00 committed by GitHub
parent 3d9c599769
commit c3d51a7739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!