Skip to content

Commit

Permalink
fix: release pipeline 3
Browse files Browse the repository at this point in the history
  • Loading branch information
drgsn committed Dec 26, 2024
1 parent 772acfa commit 0e66f1b
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ builds:
binary: filefusion
goos:
- linux
- darwin
- windows
goarch:
- amd64
Expand All @@ -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: >-
Expand Down Expand Up @@ -63,7 +75,6 @@ checksum:
name_template: 'checksums.txt'
algorithm: sha256

# Add changelog configuration
changelog:
sort: asc
filters:
Expand All @@ -73,6 +84,3 @@ changelog:
- '^ci:'
- Merge pull request
- Merge branch

snapshot:
name_template: '{{ incpatch .Version }}-next'

0 comments on commit 0e66f1b

Please sign in to comment.