Skip to content

Commit

Permalink
Update android_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kqlio67 authored Nov 7, 2024
1 parent 6b0c7d6 commit b968abc
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/android_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,25 @@ jobs:
run: yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses

- name: Install Android SDK Build-Tools
run: $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "build-tools;33.0.0"
run: |
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "build-tools;33.0.0"
echo "ANDROID_BUILD_TOOLS_PATH=$ANDROID_HOME/build-tools/33.0.0" >> $GITHUB_ENV
- name: Set Build-Tools path
run: echo "ANDROID_BUILD_TOOLS_PATH=$ANDROID_HOME/build-tools/33.0.0" >> $GITHUB_ENV
- name: Set up Buildozer
run: |
buildozer init
sed -i 's/^android.accept_sdk_license =.*/android.accept_sdk_license = True/' buildozer.spec
sed -i 's/^android.sdk_path =.*/android.sdk_path = \/usr\/local\/lib\/android\/sdk/' buildozer.spec
sed -i 's/^android.ndk_path =.*/android.ndk_path = \/usr\/local\/lib\/android\/ndk/' buildozer.spec
sed -i 's/^android.build_tools =.*/android.build_tools = 33.0.0/' buildozer.spec
- name: Build APK
env:
ANDROID_HOME: ${{ env.ANDROID_SDK_ROOT }}
ANDROID_BUILD_TOOLS_PATH: ${{ env.ANDROID_BUILD_TOOLS_PATH }}
run: |
cd projects/android
buildozer --verbose android debug
buildozer android debug
- name: Upload APK
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit b968abc

Please sign in to comment.