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
- 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

View file

@ -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}*")