From dfbfcb3750b092550a0275f21dd8adfc658fdbbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3rebe=20-=20Romain=20GERARD?= Date: Sat, 25 May 2024 11:46:27 +0200 Subject: [PATCH] Add android build --- .goreleaser.yaml | 5 +++++ .goreleaser_hook.sh | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index af2fa93..43a7196 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -4,6 +4,7 @@ builds: - darwin - windows - freebsd + - android goarch: - "386" - amd64 @@ -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 diff --git a/.goreleaser_hook.sh b/.goreleaser_hook.sh index cbe481d..97d18a0 100755 --- a/.goreleaser_hook.sh +++ b/.goreleaser_hook.sh @@ -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}*")