File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 4444 java-version : 17
4545
4646 - name : Setup Android SDK
47- uses : android-actions/setup-android@00854ea68c109d98c75d956347303bf7c45b0277 # 3.2.1
47+ shell : bash
48+ env :
49+ ANDROID_SDK_VERSION : 10406996
50+ ANDROID_SDK_CHECKSUM : 8919e8752979db73d8321e9babe2caedcc393750817c1a5f56c128ec442fb540
51+ run : |
52+ # Create home directory
53+ export ANDROID_HOME=$HOME/.android/sdk
54+ mkdir -p $ANDROID_HOME
55+
56+ # Download and verify the `cmdline-tools`
57+ curl -O $ANDROID_HOME/cmdline-tools.zip https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_SDK_VERSION}_latest.zip
58+ echo "$ANDROID_SDK_CHECKSUM $ANDROID_HOME/cmdline-tools.zip" | sha256sum -c
59+ unzip -d $ANDROID_HOME/cmdline-tools{,.zip}
60+ mv $ANDROID_HOME/cmdline-tools/{cmdline-tools,latest}
61+
62+ # Accept licenses
63+ yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager --licenses
64+
65+ # Installing the remaining tools
66+ $ANDROID_HOME/cmdline-tools/bin/sdkmanager tools platform-tools
67+
68+ # Exporting ANDROID_HOME and adding sdkmanager to the PATH
69+ echo "ANDROID_HOME=$ANDROID_HOME" >> $GITHUB_ENV
70+ echo $ANDROID_HOME/cmdline-tools/bin >> $GITHUB_PATH
4871
4972 - name : Build
5073 id : build
You can’t perform that action at this time.
0 commit comments