From c9c623db65111d5347a3377e95ff645a165ff66c Mon Sep 17 00:00:00 2001 From: yair Date: Wed, 27 Dec 2023 16:35:52 +0200 Subject: [PATCH] go releaser --- .goreleaser.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 279c5a3..bfaad53 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -2,14 +2,24 @@ before: hooks: - go mod tidy builds: -- env: +- id: linux-build + env: - CGO_ENABLED=1 binary: "{{ .ProjectName }}" goos: - linux goarch: - amd64 - - arm64 +- id: darwin-build + env: + - CGO_ENABLED=1 + - CC=/home/runner/work/osxcross/target/bin/o64-clang + - CXX=/home/runner/work/osxcross/target/bin/o64-clang++ + goos: + - darwin + ignore: + - goos: darwin + goarch: 386 dockers: - image_templates: - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64"