2024-06-26 01:30:41 +03:00
|
|
|
version: 2
|
2021-10-25 21:56:48 +03:00
|
|
|
project_name: scorecard
|
|
|
|
env:
|
|
|
|
- GO111MODULE=on
|
2021-10-25 22:30:13 +03:00
|
|
|
# https://stackoverflow.com/a/62821358/19407
|
|
|
|
- CGO_ENABLED=0
|
2021-02-17 23:21:27 +03:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod download
|
2021-11-16 19:41:23 +03:00
|
|
|
gomod:
|
|
|
|
proxy: true
|
2021-02-17 23:21:27 +03:00
|
|
|
builds:
|
2021-10-25 21:56:48 +03:00
|
|
|
- id: linux
|
|
|
|
binary: scorecard-linux-{{ .Arch }}
|
|
|
|
no_unique_dist_dir: true
|
2021-10-26 23:54:49 +03:00
|
|
|
flags:
|
|
|
|
# trimpath is for reproducible builds
|
|
|
|
# remove all file system paths from the resulting executable.
|
|
|
|
# Instead of absolute file system paths, the recorded file names
|
|
|
|
# will begin with either "go" (for the standard library),
|
|
|
|
# or a module path@version (when using modules),
|
|
|
|
# or a plain import path (when using GOPATH).
|
|
|
|
- -trimpath
|
|
|
|
- -tags=netgo
|
2021-10-30 02:36:35 +03:00
|
|
|
# Set the modified timestamp on the output binary, typically
|
|
|
|
# you would do this to ensure a build was reproducible. Pass
|
|
|
|
# empty string to skip modifying the output.
|
|
|
|
# Default is empty string.
|
|
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
2021-10-25 21:56:48 +03:00
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
2022-08-17 03:27:03 +03:00
|
|
|
- amd64
|
2021-10-25 21:56:48 +03:00
|
|
|
- arm64
|
|
|
|
ldflags:
|
2021-10-25 22:30:13 +03:00
|
|
|
- -s {{.Env.VERSION_LDFLAGS}}
|
2021-10-25 21:56:48 +03:00
|
|
|
|
|
|
|
- id: darwin
|
|
|
|
binary: scorecard-darwin-{{ .Arch }}
|
|
|
|
no_unique_dist_dir: true
|
2021-10-26 23:54:49 +03:00
|
|
|
flags:
|
|
|
|
# trimpath is for reproducible builds
|
|
|
|
# remove all file system paths from the resulting executable.
|
|
|
|
# Instead of absolute file system paths, the recorded file names
|
|
|
|
# will begin with either "go" (for the standard library),
|
|
|
|
# or a module path@version (when using modules),
|
|
|
|
# or a plain import path (when using GOPATH).
|
|
|
|
- -trimpath
|
|
|
|
- -tags=netgo
|
2021-10-30 02:36:35 +03:00
|
|
|
# Set the modified timestamp on the output binary, typically
|
|
|
|
# you would do this to ensure a build was reproducible. Pass
|
|
|
|
# empty string to skip modifying the output.
|
|
|
|
# Default is empty string.
|
|
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
2021-10-25 21:56:48 +03:00
|
|
|
goos:
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
ldflags:
|
2021-10-25 22:30:13 +03:00
|
|
|
- -s {{.Env.VERSION_LDFLAGS}}
|
2021-10-25 21:56:48 +03:00
|
|
|
|
|
|
|
- id: windows
|
|
|
|
binary: scorecard-windows-{{ .Arch }}
|
|
|
|
no_unique_dist_dir: true
|
2021-10-26 23:54:49 +03:00
|
|
|
flags:
|
|
|
|
# trimpath is for reproducible builds
|
|
|
|
# remove all file system paths from the resulting executable.
|
|
|
|
# Instead of absolute file system paths, the recorded file names
|
|
|
|
# will begin with either "go" (for the standard library),
|
|
|
|
# or a module path@version (when using modules),
|
|
|
|
# or a plain import path (when using GOPATH).
|
|
|
|
- -trimpath
|
|
|
|
- -tags=netgo
|
2021-10-30 02:36:35 +03:00
|
|
|
# Set the modified timestamp on the output binary, typically
|
|
|
|
# you would do this to ensure a build was reproducible. Pass
|
|
|
|
# empty string to skip modifying the output.
|
|
|
|
# Default is empty string.
|
|
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
2021-10-25 21:56:48 +03:00
|
|
|
goos:
|
|
|
|
- windows
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
ldflags:
|
|
|
|
- -buildmode=exe
|
2021-10-25 22:30:13 +03:00
|
|
|
- -s {{.Env.VERSION_LDFLAGS}}
|
2021-02-14 05:30:11 +03:00
|
|
|
|
2021-02-17 23:21:27 +03:00
|
|
|
checksum:
|
2021-02-14 05:30:11 +03:00
|
|
|
# Algorithm to be used.
|
|
|
|
# Accepted options are sha256, sha512, sha1, crc32, md5, sha224 and sha384.
|
|
|
|
# Default is sha256.
|
2021-10-25 21:56:48 +03:00
|
|
|
name_template: "{{ .ProjectName }}_checksums.txt"
|
|
|
|
|
|
|
|
snapshot:
|
|
|
|
name_template: SNAPSHOT-{{ .ShortCommit }}
|
2021-02-14 05:30:11 +03:00
|
|
|
changelog:
|
|
|
|
# Set it to true if you wish to skip the changelog generation.
|
|
|
|
# This may result in an empty release notes on GitHub/GitLab/Gitea.
|
2024-06-26 01:30:41 +03:00
|
|
|
disable: false
|
2021-10-25 21:56:48 +03:00
|
|
|
release:
|
|
|
|
footer: |
|
|
|
|
### Thanks for all contributors!
|