From 024c7f6d9d1ce147849bfc6a942c44f1270e4e5c Mon Sep 17 00:00:00 2001 From: waqas-ashraf-venturedive Date: Tue, 24 Mar 2026 21:34:41 +0500 Subject: [PATCH 1/2] #154 Add Windows build and archive configurations Signed-off-by: waqas-ashraf-venturedive --- .goreleaser.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 583cd7f..2aa7d8a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -48,6 +48,14 @@ builds: env: - QUILL_LOG_FILE=/tmp/quill-{{ .Target }}.log + - id: windows-build + dir: ./cmd/syft + binary: syft + goos: [windows] + goarch: [amd64, arm64] + mod_timestamp: *build-timestamp + ldflags: *build-ldflags + archives: - id: linux-archives builds: @@ -56,6 +64,12 @@ archives: builds: - darwin-build + - id: windows-archives + formats: + - zip + builds: + - windows-build + nfpms: - license: "Apache 2.0" maintainer: "Anchore, Inc" From 40e818297db5f41d05513f3c03e1c27c2e109abf Mon Sep 17 00:00:00 2001 From: waqas-ashraf-venturedive Date: Tue, 24 Mar 2026 21:43:50 +0500 Subject: [PATCH 2/2] Change build configuration for Windows binary Signed-off-by: waqas-ashraf-venturedive --- .goreleaser.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2aa7d8a..94b5f72 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -49,8 +49,8 @@ builds: - QUILL_LOG_FILE=/tmp/quill-{{ .Target }}.log - id: windows-build - dir: ./cmd/syft - binary: syft + dir: ./cmd/grant + binary: grant goos: [windows] goarch: [amd64, arm64] mod_timestamp: *build-timestamp