Add android build
This commit is contained in:
parent
06ca365c2a
commit
dfbfcb3750
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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}*")
|
||||||
|
|
Loading…
Reference in a new issue