aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-02-26 22:56:12 +0800
committerGitHub <noreply@github.com>2019-02-26 22:56:12 +0800
commitb7e0dec6bdf40c94d51740fd2cf13321f69a6b15 (patch)
treebd1a989bfdb502e1a9256c55dde72ff65c9d1579
parent6d652ce1b7efe38f1f8ca8c60b1627e35ac4e0bd (diff)
downloadgo-tangerine-b7e0dec6bdf40c94d51740fd2cf13321f69a6b15.tar
go-tangerine-b7e0dec6bdf40c94d51740fd2cf13321f69a6b15.tar.gz
go-tangerine-b7e0dec6bdf40c94d51740fd2cf13321f69a6b15.tar.bz2
go-tangerine-b7e0dec6bdf40c94d51740fd2cf13321f69a6b15.tar.lz
go-tangerine-b7e0dec6bdf40c94d51740fd2cf13321f69a6b15.tar.xz
go-tangerine-b7e0dec6bdf40c94d51740fd2cf13321f69a6b15.tar.zst
go-tangerine-b7e0dec6bdf40c94d51740fd2cf13321f69a6b15.zip
travis, build: switch to NDK 19b, fix gomobile builds (#19171)
* travis, build: switch to NDK 19b, fix gomobile builds * travis, build: move NDK into its final bundle location * travis: disable Android build on PRs once again
-rw-r--r--.travis.yml7
-rw-r--r--build/ci.go4
2 files changed, 3 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 5d6139113..b09bd7ce0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -165,10 +165,9 @@ matrix:
- export GOPATH=$HOME/go
script:
# Build the Android archive and upload it to Maven Central and Azure
- - curl https://dl.google.com/android/repository/android-ndk-r17b-linux-x86_64.zip -o android-ndk-r17b.zip
- - unzip -q android-ndk-r17b.zip && rm android-ndk-r17b.zip
- - mv android-ndk-r17b $HOME
- - export ANDROID_NDK=$HOME/android-ndk-r17b
+ - curl https://dl.google.com/android/repository/android-ndk-r19b-linux-x86_64.zip -o android-ndk-r19b.zip
+ - unzip -q android-ndk-r19b.zip && rm android-ndk-r19b.zip
+ - mv android-ndk-r19b $ANDROID_HOME/ndk-bundle
- mkdir -p $GOPATH/src/github.com/ethereum
- ln -s `pwd` $GOPATH/src/github.com/ethereum/go-ethereum
diff --git a/build/ci.go b/build/ci.go
index 4ee76ced5..91339d22c 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -800,12 +800,8 @@ func doAndroidArchive(cmdline []string) {
if os.Getenv("ANDROID_HOME") == "" {
log.Fatal("Please ensure ANDROID_HOME points to your Android SDK")
}
- if os.Getenv("ANDROID_NDK") == "" {
- log.Fatal("Please ensure ANDROID_NDK points to your Android NDK")
- }
// Build the Android archive and Maven resources
build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile", "golang.org/x/mobile/cmd/gobind"))
- build.MustRun(gomobileTool("init", "--ndk", os.Getenv("ANDROID_NDK")))
build.MustRun(gomobileTool("bind", "-ldflags", "-s -w", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/ethereum/go-ethereum/mobile"))
if *local {