Skip to content

Commit

Permalink
Add android build
Browse files Browse the repository at this point in the history
  • Loading branch information
erebe committed May 25, 2024
1 parent 06ca365 commit dfbfcb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ builds:
- darwin
- windows
- freebsd
- android
goarch:
- "386"
- amd64
Expand All @@ -21,6 +22,10 @@ builds:
goarch: arm
- goos: linux
goarch: "386"
- goos: android
goarch: "386"
- goos: android
goarch: amd64
- goos: darwin
goarch: "386"
- goos: freebsd
Expand Down
3 changes: 2 additions & 1 deletion .goreleaser_hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ case $go_os in
darwin) rust_os='apple-darwin' ;;
windows) rust_os='windows' ;;
freebsd) rust_os='freebsd' ;;
android) rust_os='android' ;;
*) echo "unknown os: $go_os" && exit 1 ;;
esac

# Find artifacts and uncompress in the coresponding directory
# Find artifacts and uncompress in the corresponding directory
if [ -z "$go_arm" ]
then
DIST_DIR=$(find dist -type d -name "*${go_os}_${go_arch}*")
Expand Down

0 comments on commit dfbfcb3

Please sign in to comment.