From 0e66f1b660a3f46292ecddea125705ba1a9325f8 Mon Sep 17 00:00:00 2001 From: Dragos Niculescu Date: Thu, 26 Dec 2024 02:30:49 +0200 Subject: [PATCH] fix: release pipeline 3 --- .goreleaser.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index ce22733..c5f96ba 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -11,7 +11,6 @@ builds: binary: filefusion goos: - linux - - darwin - windows goarch: - amd64 @@ -20,18 +19,31 @@ builds: - CGO_ENABLED=1 flags: - -tags=bash cpp csharp golang css html java php kotlin javascript ruby python swift typescript sql - # Add overrides for ARM64 cross-compilation overrides: - goos: linux goarch: arm64 env: - CC=aarch64-linux-gnu-gcc - CXX=aarch64-linux-gnu-g++ - # Skip Windows ARM64 as it's less commonly used + - CGO_ENABLED=1 ignore: - goos: windows goarch: arm64 + # Separate build configuration for macOS + - id: filefusion-darwin + main: ./cmd/filefusion/main.go + binary: filefusion + goos: + - darwin + goarch: + - amd64 + - arm64 + env: + - CGO_ENABLED=0 # Disable CGO for macOS builds + flags: + - -tags=bash cpp csharp golang css html java php kotlin javascript ruby python swift typescript sql + archives: - id: filefusion-archive name_template: >- @@ -63,7 +75,6 @@ checksum: name_template: 'checksums.txt' algorithm: sha256 -# Add changelog configuration changelog: sort: asc filters: @@ -73,6 +84,3 @@ changelog: - '^ci:' - Merge pull request - Merge branch - -snapshot: - name_template: '{{ incpatch .Version }}-next'