Add android build

This commit is contained in:
Σrebe - Romain GERARD 2024-05-25 11:46:27 +02:00
parent 06ca365c2a
commit dfbfcb3750
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4
2 changed files with 7 additions and 1 deletions

View file

@ -4,6 +4,7 @@ builds:
- darwin - darwin
- windows - windows
- freebsd - freebsd
- android
goarch: goarch:
- "386" - "386"
- amd64 - amd64
@ -21,6 +22,10 @@ builds:
goarch: arm goarch: arm
- goos: linux - goos: linux
goarch: "386" goarch: "386"
- goos: android
goarch: "386"
- goos: android
goarch: amd64
- goos: darwin - goos: darwin
goarch: "386" goarch: "386"
- goos: freebsd - goos: freebsd

View file

@ -18,10 +18,11 @@ case $go_os in
darwin) rust_os='apple-darwin' ;; darwin) rust_os='apple-darwin' ;;
windows) rust_os='windows' ;; windows) rust_os='windows' ;;
freebsd) rust_os='freebsd' ;; freebsd) rust_os='freebsd' ;;
android) rust_os='android' ;;
*) echo "unknown os: $go_os" && exit 1 ;; *) echo "unknown os: $go_os" && exit 1 ;;
esac esac
# Find artifacts and uncompress in the coresponding directory # Find artifacts and uncompress in the corresponding directory
if [ -z "$go_arm" ] if [ -z "$go_arm" ]
then then
DIST_DIR=$(find dist -type d -name "*${go_os}_${go_arch}*") DIST_DIR=$(find dist -type d -name "*${go_os}_${go_arch}*")