Skip to content

Commit d557258

Browse files
author
decryptable
committed
Install build-tools v.30.0.2
1 parent 861d195 commit d557258

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/release-app.yaml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ jobs:
7474
# run: ./gradlew test
7575

7676
# Run Build Project
77-
- name: Build gradle project
78-
run: ./gradlew build
77+
# - name: Build gradle project
78+
# run: ./gradlew build
7979

8080
# Create APK Debug
8181
# - name: Build apk debug project (APK) - ${{ env.main_project_module }} module
8282
# run: ./gradlew assembleDebug
8383

8484
# Create APK Release
85-
- name: Build apk release project (APK)
85+
- name: Build APK Release
8686
run: ./gradlew assemble
8787

8888
# Upload Artifact Build
@@ -100,10 +100,18 @@ jobs:
100100
# name: ${{ env.date_today }} - ${{ env.playstore_name }} - ${{ env.repository_name }} - APK(s) release generated
101101
# path: ${{ env.main_project_module }}/build/outputs/apk/release/
102102
#
103-
- name: setup-android-tools
104-
uses: android-actions/setup-android@v3
105-
with:
106-
packages: cmdline-tools
103+
- name: setup cmdline-tools
104+
run: |
105+
mkdir -p /usr/local/lib/android/sdk/cmdline-tools
106+
curl -o commandlinetools.zip https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
107+
unzip -q commandlinetools.zip -d /usr/local/lib/android/sdk/cmdline-tools
108+
mv /usr/local/lib/android/sdk/cmdline-tools/cmdline-tools /usr/local/lib/android/sdk/cmdline-tools/latest
109+
rm commandlinetools.zip
110+
111+
- name: Install Android build-tools
112+
run: |
113+
yes | /usr/local/lib/android/sdk/cmdline-tools/latest/bin/sdkmanager --sdk_root=/usr/local/lib/android/sdk "build-tools;30.0.2" --verbose --no_https
114+
107115
108116
- name: Sign APK with keystore
109117
uses: r0adkll/sign-android-release@v1
@@ -115,7 +123,7 @@ jobs:
115123
keyStorePassword: ${{ secrets.KEY_STORE_PASS }}
116124
keyPassword: ${{ secrets.KEY_STORE_PASS }}
117125
env:
118-
BUILD_TOOLS_VERSION: "16.0"
126+
BUILD_TOOLS_VERSION: "30.0.2"
119127

120128
- name: Upload APK Release to releases
121129
uses: svenstaro/upload-release-action@v2

0 commit comments

Comments
 (0)