File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 1616 - name : Ensure Gradle wrapper is executable
1717 run : chmod +x ./gradlew
1818
19+ - name : Setup Android SDK (API 35)
20+ shell : bash
21+ run : |
22+ set -euo pipefail
23+ ANDROID_SDK_ROOT="$HOME/android-sdk"
24+ echo "ANDROID_SDK_ROOT=$ANDROID_SDK_ROOT" >> "$GITHUB_ENV"
25+ echo "ANDROID_HOME=$ANDROID_SDK_ROOT" >> "$GITHUB_ENV"
26+ echo "$ANDROID_SDK_ROOT/cmdline-tools/latest/bin" >> "$GITHUB_PATH"
27+ echo "$ANDROID_SDK_ROOT/platform-tools" >> "$GITHUB_PATH"
28+ mkdir -p "$ANDROID_SDK_ROOT/cmdline-tools"
29+ curl -sSL -o cmdline-tools.zip https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
30+ unzip -q cmdline-tools.zip -d "$ANDROID_SDK_ROOT/cmdline-tools"
31+ mv "$ANDROID_SDK_ROOT/cmdline-tools/cmdline-tools" "$ANDROID_SDK_ROOT/cmdline-tools/latest"
32+ yes | sdkmanager --licenses
33+ sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
34+ echo "sdk.dir=$ANDROID_SDK_ROOT" > local.properties
35+
1936 - name : Setup JDK 17
2037 uses : actions/setup-java@v4
2138 with :
You can’t perform that action at this time.
0 commit comments