Skip to content

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
linzyt223 authored Sep 24, 2024
1 parent 98e76f1 commit 79521f1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,16 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y wget unzip
# Download command line tools for Android SDK
wget https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip

unzip commandlinetools-linux-7583922_latest.zip -d cmdline-tools
sudo mv cmdline-tools /usr/local/android-sdk
sudo mkdir -p /usr/local/android-sdk/cmdline-tools/latest
sudo mv /usr/local/android-sdk/cmdline-tools/* /usr/local/android-sdk/cmdline-tools/latest/
# Set up Android environment variables
sudo mv cmdline-tools /usr/local/android-sdk

echo "export ANDROID_SDK_ROOT=/usr/local/android-sdk" >> $GITHUB_ENV
echo "export PATH=\$PATH:/usr/local/android-sdk/cmdline-tools/latest/bin" >> $GITHUB_ENV
echo "export PATH=\$PATH:/usr/local/android-sdk/cmdline-tools/bin" >> $GITHUB_ENV


# Accept licenses
yes | sdkmanager --licenses

Expand Down

0 comments on commit 79521f1

Please sign in to comment.