version: 2 project_name: vcheck builds: - id: darwin binary: vcheck ldflags: - -s -w - -X main.version={{.Version}} - -X main.commit={{.Commit}} - -X main.date={{.Date}} env: - CGO_ENABLED=0 goos: - darwin goarch: - amd64 - arm64 - id: others binary: vcheck ldflags: - -s -w - -X main.version={{.Version}} - -X main.commit={{.Commit}} - -X main.date={{.Date}} env: - CGO_ENABLED=0 goos: - linux - windows goarch: - amd64 - arm64 ignore: - goos: windows goarch: arm64 upx: - enabled: true compress: best lzma: true archives: - id: binaries formats: - binary name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" - id: archives ids: - darwin formats: - tar.gz name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" homebrew_casks: - name: vcheck ids: - archives homepage: "https://github.com/krisiasty/vcheck" description: "Audits remote Linux hosts over SSH for Copy Fail and Dirty Frag kernel-module vulnerabilities." license: "Apache-2.0" repository: owner: krisiasty name: homebrew-tap token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" binaries: - vcheck hooks: post: install: | system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", staged_path] checksum: name_template: "checksums.txt" changelog: sort: asc abbrev: 8 format: "- [{{ .SHA }}](https://github.com/krisiasty/vcheck/commit/{{ .SHA }}) {{ .Message }}" filters: exclude: - "^docs:" - "^test:" - "^chore:" release: prerelease: "{{ .IsV0 }}"