mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 21:57:44 +03:00
Android: Use NDK r18-beta2 and -D__ANDROID_API__=19
This commit is contained in:
parent
e8a7250bf6
commit
4344d335d1
1 changed files with 9 additions and 5 deletions
14
.travis.yml
14
.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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue