mirror of
https://github.com/actions/runner-images.git
synced 2025-12-19 08:22:12 +00:00
Add check for sdk manager installation
This commit is contained in:
@@ -22,8 +22,19 @@ wget -O android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux
|
|||||||
unzip android-sdk.zip -d ${ANDROID_SDK_ROOT}
|
unzip android-sdk.zip -d ${ANDROID_SDK_ROOT}
|
||||||
rm -f android-sdk.zip
|
rm -f android-sdk.zip
|
||||||
|
|
||||||
|
# Check sdk manager installation
|
||||||
|
${ANDROID_SDK_ROOT}/tools/bin/sdkmanager --list 1>/dev/null
|
||||||
|
if [ $? -eq 0 ]
|
||||||
|
then
|
||||||
|
echo "Android SDK manager was installed"
|
||||||
|
else
|
||||||
|
echo "Android SDK manager was not installed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Install the following SDKs and build tools, passing in "y" to accept licenses.
|
# Install the following SDKs and build tools, passing in "y" to accept licenses.
|
||||||
echo "y" | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_ROOT} \
|
echo "y" | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager \
|
||||||
"ndk-bundle" \
|
"ndk-bundle" \
|
||||||
"platform-tools" \
|
"platform-tools" \
|
||||||
"platforms;android-29" \
|
"platforms;android-29" \
|
||||||
|
|||||||
@@ -22,8 +22,18 @@ wget -O android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux
|
|||||||
unzip android-sdk.zip -d ${ANDROID_SDK_ROOT}
|
unzip android-sdk.zip -d ${ANDROID_SDK_ROOT}
|
||||||
rm -f android-sdk.zip
|
rm -f android-sdk.zip
|
||||||
|
|
||||||
|
# Check sdk manager installation
|
||||||
|
${ANDROID_SDK_ROOT}/tools/bin/sdkmanager --list 1>/dev/null
|
||||||
|
if [ $? -eq 0 ]
|
||||||
|
then
|
||||||
|
echo "Android SDK manager was installed"
|
||||||
|
else
|
||||||
|
echo "Android SDK manager was not installed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Install the following SDKs and build tools, passing in "y" to accept licenses.
|
# Install the following SDKs and build tools, passing in "y" to accept licenses.
|
||||||
echo "y" | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_ROOT} \
|
echo "y" | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager \
|
||||||
"ndk-bundle" \
|
"ndk-bundle" \
|
||||||
"platform-tools" \
|
"platform-tools" \
|
||||||
"platforms;android-29" \
|
"platforms;android-29" \
|
||||||
|
|||||||
Reference in New Issue
Block a user