Skip to content

Commit

Permalink
Update build-android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha authored Jan 15, 2024
1 parent a9bcddc commit e6efb84
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,21 @@ jobs:
- name: Build mobile package
run: |
gomobile bind -v -o ./build/mobile.aar -target=android -androidapi 26 ./mobile
- name: Set up Maven
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11' # Specify the Java version
distribution: 'adopt'

- name: Install Android SDK
run: |
wget https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip
unzip commandlinetools-linux-6609375_latest.zip -d $HOME/cmdline-tools
echo "ANDROID_HOME=$HOME/cmdline-tools" >> $GITHUB_ENV
echo "$HOME/cmdline-tools/bin" >> $GITHUB_PATH
- name: Install SDK Packages
run: |
yes | $HOME/cmdline-tools/bin/sdkmanager --licenses
$HOME/cmdline-tools/bin/sdkmanager "platforms;android-31" "build-tools;31.0.3"
- name: Get Release Info
id: get-release-info
uses: actions/github-script@v5
Expand Down

0 comments on commit e6efb84

Please sign in to comment.