Skip to content

Commit

Permalink
TEMP: Update NDK on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
finagolfin authored and Grimler91 committed Aug 17, 2021
1 parent af68f53 commit 745ab73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ jobs:
fi
if [ -f ./built_packages.txt ]; then
./scripts/run-docker.sh ./scripts/setup-android-sdk.sh
./scripts/lint-packages.sh $(cat ./built_packages.txt | awk '{print "packages/"$1"/build.sh"}')
./scripts/run-docker.sh ./build-package.sh -I -a ${{ matrix.target_arch }} $(cat ./built_packages.txt)
fi
Expand Down
13 changes: 3 additions & 10 deletions scripts/setup-android-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ if [ ! -d $ANDROID_HOME ]; then
rm tools.zip
fi

more $NDK/source.properties
rm -rf $NDK
if [ ! -d $NDK ]; then
mkdir -p $NDK
cd $NDK/..
Expand All @@ -37,14 +39,5 @@ if [ ! -d $NDK ]; then
unzip -q ndk.zip
mv android-ndk-r$TERMUX_NDK_VERSION $(basename $NDK)
rm ndk.zip
more $NDK/source.properties
fi

yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_HOME --licenses

# The android platforms are used in the ecj and apksigner packages:
yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_HOME \
"platform-tools" \
"build-tools;${TERMUX_ANDROID_BUILD_TOOLS_VERSION}" \
"platforms;android-28" \
"platforms;android-24" \
"platforms;android-21"

0 comments on commit 745ab73

Please sign in to comment.