try to fix
Some checks failed
Build Android / Build APK (push) Has been cancelled

This commit is contained in:
Alexander Kacheryants 2024-07-11 22:35:29 +03:00
parent 11d573d3b1
commit c4c9bc73d0

View File

@ -17,14 +17,16 @@ jobs:
java-version: '17' java-version: '17'
cache: 'gradle' cache: 'gradle'
# - name: Setup Android SDK
# uses: amyu/setup-android@v4
# with:
# sdk-version: |
# 30
# 34
- name: Setup Android SDK - name: Setup Android SDK
uses: android-actions/setup-android@v3 uses: amyu/setup-android@v4
with:
sdk-version: |
30
34
build-tools-version: 33.0.3
- name: Install android Build Tools
run: $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "build-tools;30.0.3"
- name: Accept license for Android SDK - name: Accept license for Android SDK
run: yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses || if [ $? -ne '141' ]; then exit $?; fi; #Captures SIGPIPE 141 error but still allow repeating "y" to accept all licenses run: yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses || if [ $? -ne '141' ]; then exit $?; fi; #Captures SIGPIPE 141 error but still allow repeating "y" to accept all licenses