Skip to content

Commit

Permalink
fix(goreleaser): add build for Android (#1076)
Browse files Browse the repository at this point in the history
According to golang/go@58f6022, the `bad system call` bug on Termux should be fixed when GOOS is android.

Test passed on Termux.
  • Loading branch information
WaterLemons2k committed Apr 8, 2024
1 parent 27541d1 commit 23a8b04
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .goreleaser.yml
Expand Up @@ -12,12 +12,13 @@ builds:
flags:
- -trimpath
goos:
- android
- linux
- windows
- darwin
- freebsd
goarch:
- 386
- '386'
- amd64
- arm
- arm64
Expand All @@ -26,16 +27,25 @@ builds:
- mips64
- mips64le
goarm:
- 5
- 6
- 7
- '5'
- '6'
- '7'
gomips:
- hardfloat
- softfloat
ignore:
# we only need the arm64 build on android
- goos: android
goarch: arm
- goos: android
goarch: '386'
- goos: android
goarch: amd64

ldflags:
- -s -w -X main.version={{.Tag}} -X main.buildTime={{.Date}}
archives:
# use zip for windows archives
# use zip for windows archives
- format_overrides:
- goos: windows
format: zip
Expand All @@ -52,7 +62,7 @@ archives:
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
name_template: '{{ .Tag }}-next'
changelog:
sort: asc
filters:
Expand Down

0 comments on commit 23a8b04

Please sign in to comment.