-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #534 from chriswailes/android-ndk-update
Update CI script to handle newer versions of the Android NDK
- Loading branch information
Showing
6 changed files
with
24 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
set -ex | ||
|
||
ANDROID_ARCH=$1 | ||
ANDROID_SDK_VERSION=4333796 | ||
|
||
mkdir /tmp/android | ||
cd /tmp/android | ||
|
||
curl -o android-sdk.zip \ | ||
"https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_VERSION}.zip" | ||
unzip -q android-sdk.zip | ||
|
||
yes | ./tools/bin/sdkmanager --licenses > /dev/null | ||
./tools/bin/sdkmanager ndk-bundle > /dev/null | ||
|
||
./ndk-bundle/build/tools/make_standalone_toolchain.py \ | ||
--arch $ANDROID_ARCH \ | ||
--stl=libc++ \ | ||
--api 21 \ | ||
--install-dir /android-toolchain | ||
ANDROID_NDK_URL=https://dl.google.com/android/repository | ||
ANDROID_NDK_ARCHIVE=android-ndk-r25b-linux.zip | ||
|
||
mkdir /android-toolchain | ||
cd /android-toolchain | ||
curl -fO $ANDROID_NDK_URL/$ANDROID_NDK_ARCHIVE | ||
unzip -q $ANDROID_NDK_ARCHIVE | ||
rm $ANDROID_NDK_ARCHIVE | ||
mv android-ndk-* ndk | ||
|
||
cd /tmp | ||
rm -rf android |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters