From 2ae8a23f8a6cbd07dfe754cf02bd2d4aa3c61ffe Mon Sep 17 00:00:00 2001 From: neurlang <77860779+neurlang@users.noreply.github.com> Date: Mon, 30 Sep 2024 08:00:58 +0200 Subject: [PATCH] Update .slsa-goreleaser.yml matrix build --- .slsa-goreleaser.yml | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/.slsa-goreleaser.yml b/.slsa-goreleaser.yml index 5ef240b..313fded 100644 --- a/.slsa-goreleaser.yml +++ b/.slsa-goreleaser.yml @@ -1,17 +1,33 @@ # Version for this file. -version: 1 +version: 2 -# (Optional) List of env variables used during compilation. -env: - - GO111MODULE=on +project_name: goruut -# (Optional) Flags for the compiler. -flags: - - -trimpath - -# Entrypoint to compile. -main: ./cmd/goruut/main.go -# Binary output name. -# {{ .Os }} will be replaced by goos field in the config file. -# {{ .Arch }} will be replaced by goarch field in the config file. -binary: goruut-{{ .Os }}-{{ .Arch }} +builds: + - env: + - GO111MODULE=on + - CGO_ENABLED=0 + flags: + - -trimpath + main: ./cmd/goruut/main.go + binary: goruut-{{ .Os }}-{{ .Arch }} + goos: + - darwin + - linux + - windows + - freebsd + goarch: + - amd64 + - 386 + - arm + - arm64 + - riscv64 + goarm: + - 5 + - 6 + - 7 + ignore: + - goos: darwin + goarch: 386 + - goos: freebsd + goarch: arm