mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
added permissions to ANDROID_SDK_ROOT (#1393)
Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
This commit is contained in:
@@ -37,7 +37,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Add required permissions
|
# Add required permissions
|
||||||
chmod -R a+X ${ANDROID_SDK_ROOT}
|
chmod -R a+rwx ${ANDROID_SDK_ROOT}
|
||||||
|
|
||||||
# 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 \
|
echo "y" | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager \
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ unzip android-sdk.zip -d ${ANDROID_SDK_ROOT}
|
|||||||
rm -f android-sdk.zip
|
rm -f android-sdk.zip
|
||||||
|
|
||||||
# Add required permissions
|
# Add required permissions
|
||||||
chmod -R a+X ${ANDROID_SDK_ROOT}
|
chmod -R a+rwx ${ANDROID_SDK_ROOT}
|
||||||
|
|
||||||
# Check sdk manager installation
|
# Check sdk manager installation
|
||||||
/usr/local/lib/android/sdk/tools/bin/sdkmanager --list 1>/dev/null
|
/usr/local/lib/android/sdk/tools/bin/sdkmanager --list 1>/dev/null
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ unzip android-sdk.zip -d ${ANDROID_SDK_ROOT}
|
|||||||
rm -f android-sdk.zip
|
rm -f android-sdk.zip
|
||||||
|
|
||||||
# Add required permissions
|
# Add required permissions
|
||||||
chmod -R a+X ${ANDROID_SDK_ROOT}
|
chmod -R a+rwx ${ANDROID_SDK_ROOT}
|
||||||
|
|
||||||
if isUbuntu20 ; then
|
if isUbuntu20 ; then
|
||||||
# Sdk manager doesn't work with Java > 8, set version 8 explicitly
|
# Sdk manager doesn't work with Java > 8, set version 8 explicitly
|
||||||
|
|||||||
Reference in New Issue
Block a user