diff --git a/.travis.yml b/.travis.yml index fae27cd9..29f88362 100644 --- a/.travis.yml +++ b/.travis.yml @@ -129,28 +129,32 @@ script: - ln ../LICENSE example-dnscrypt-proxy.toml example-*.txt macos/ - tar czpvf dnscrypt-proxy-macos-${TRAVIS_TAG:-dev}.tar.gz macos - go clean -- env CC=arm-linux-androideabi-clang CXX=arm-linux-androideabi-clang++ CGO_ENABLED=1 +- env CC=arm-linux-androideabi-clang CXX=arm-linux-androideabi-clang++ + CGO_ENABLED=1 CGO_CFLAGS="-D__ANDROID_API__=19" GOOS=android GOARCH=arm GOARM=7 go build -ldflags="-s -w" - mkdir android-arm - ln dnscrypt-proxy android-arm/ - cp ../LICENSE example-dnscrypt-proxy.toml example-*.txt android-arm/ - zip -9 -r dnscrypt-proxy-android_arm-${TRAVIS_TAG:-dev}.zip android-arm - go clean -- env CC=aarch64-linux-android-clang CXX=aarch64-linux-android-clang++ CGO_ENABLED=1 +- env CC=aarch64-linux-android-clang CXX=aarch64-linux-android-clang++ + CGO_ENABLED=1 CGO_CFLAGS="-D__ANDROID_API__=19" GOOS=android GOARCH=arm64 go build -ldflags="-s -w" - mkdir android-arm64 - ln dnscrypt-proxy android-arm64/ - cp ../LICENSE example-dnscrypt-proxy.toml example-*.txt android-arm64/ - zip -9 -r dnscrypt-proxy-android_arm64-${TRAVIS_TAG:-dev}.zip android-arm64 - go clean -- env CC=i686-linux-android-clang CXX=i686-linux-android-clang++ CGO_ENABLED=1 GOOS=android +- env CC=i686-linux-android-clang CXX=i686-linux-android-clang++ + CGO_ENABLED=1 CGO_CFLAGS="-D__ANDROID_API__=19" GOOS=android GOARCH=386 go build -ldflags="-s -w" - mkdir android-i386 - ln dnscrypt-proxy android-i386/ - cp ../LICENSE example-dnscrypt-proxy.toml example-*.txt android-i386/ - zip -9 -r dnscrypt-proxy-android_i386-${TRAVIS_TAG:-dev}.zip android-i386 - go clean -- env CC=x86_64-linux-android-clang CXX=x86_64-linux-android-clang++ CGO_ENABLED=1 +- env CC=x86_64-linux-android-clang CXX=x86_64-linux-android-clang++ + CGO_ENABLED=1 CGO_CFLAGS="-D__ANDROID_API__=19" GOOS=android GOARCH=amd64 go build -ldflags="-s -w" - mkdir android-x86_64 - ln dnscrypt-proxy android-x86_64/ @@ -191,7 +195,7 @@ before_deploy: after_deploy: - ls -l dnscrypt-proxy-*.tar.gz dnscrypt-proxy-*.zip before_install: -- NDK_VER=r17b +- NDK_VER=r18-beta2 - curl -LO http://dl.google.com/android/repository/android-ndk-${NDK_VER}-linux-x86_64.zip - unzip -q android-ndk-${NDK_VER}-linux-x86_64.zip -d $HOME - rm android-ndk-${NDK_VER}-linux-x86_64.zip