From e41a1cbc779e4889c33c140a362850cd8f2daff1 Mon Sep 17 00:00:00 2001 From: Alexandre Pereira Date: Sat, 9 Nov 2024 17:07:37 +0000 Subject: [PATCH 1/2] feat: add android arm64 build --- .goreleaser.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d3316024..aa14c679 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -18,6 +18,7 @@ builds: flags: - -tags=nodbus goos: + - android - freebsd - linux - windows @@ -36,6 +37,15 @@ builds: - -X github.com/dlvhdr/gh-dash/cmd.Commit={{.Commit}} - -X github.com/dlvhdr/gh-dash/cmd.Date={{.CommitDate}} - -X github.com/dlvhdr/gh-dash/cmd.BuiltBy=goreleaser + # Skipping builds for Android non-ARM64 architectures as they need CGO enabled + # https://goreleaser.com/limitations/cgo/ + ignore: + - goos: android + goarch: "386" + - goos: android + goarch: amd64 + - goos: android + goarch: arm archives: - format: binary From b3618c481cfdbf71719dc091ab2edb0a7f677ac1 Mon Sep 17 00:00:00 2001 From: Alexandre Pereira Date: Sat, 9 Nov 2024 17:40:27 +0000 Subject: [PATCH 2/2] ci: fix goreleaser deprecation warning and yaml formatting --- .goreleaser.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index aa14c679..72235557 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -29,8 +29,8 @@ builds: - arm - "386" goarm: - - 6 - - 7 + - "6" + - "7" ldflags: - -s -w - -X github.com/dlvhdr/gh-dash/cmd.Version={{.Version}} @@ -53,7 +53,7 @@ archives: checksum: name_template: "checksums.txt" snapshot: - name_template: "{{ incpatch .Version }}-next" + version_template: "{{ incpatch .Version }}-next" changelog: sort: asc filters: