Skip to content

Commit

Permalink
chore: Update Android SDK installation process in build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaDemchenko committed Aug 13, 2024
1 parent 64356c6 commit 3dfe691
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,23 @@ jobs:
distribution: "temurin"
java-version: "17"

- name: Set Up Android SDK
uses: systemsetup/android-sdk-action@v1
with:
sdk-version: "35.0.0" # Install specific SDK version
build-tools: "35.0.0" # Install specific build tools version
- name: Install Android SDK Command Line Tools
run: |
mkdir -p $HOME/android-sdk
cd $HOME/android-sdk
wget https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip
unzip commandlinetools-linux-8512546_latest.zip
mkdir cmdline-tools
mv cmdline-tools/* cmdline-tools
rm -rf commandlinetools-linux-8512546_latest.zip
- name: Install Android SDK Platform and Build Tools
run: |
yes | $HOME/android-sdk/cmdline-tools/bin/sdkmanager --sdk_root=$HOME/android-sdk --update
yes | $HOME/android-sdk/cmdline-tools/bin/sdkmanager --sdk_root=$HOME/android-sdk "platforms;android-35" "build-tools;35.0.0"
- name: Accept Android SDK Licenses
run: yes | sdkmanager --licenses
run: yes | $HOME/android-sdk/cmdline-tools/bin/sdkmanager --sdk_root=$HOME/android-sdk --licenses

- name: Setup Flutter
uses: subosito/flutter-action@v2
Expand Down

0 comments on commit 3dfe691

Please sign in to comment.