Skip to content

Commit 4b8206f

Browse files
committed
Adjust macOS Android SDK installation
1 parent b99a0c2 commit 4b8206f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/scripts-android.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ jobs:
4949
distribution: temurin
5050
java-version: '17'
5151

52-
- name: Install Android SDK
52+
- name: Install Android SDK tools
5353
uses: android-actions/setup-android@v3
54-
with:
55-
accept-android-sdk-licenses: true
56-
packages: |
57-
platform-tools
58-
build-tools;34.0.0
59-
platforms;android-33
54+
55+
- name: Install required Android packages
56+
run: |
57+
set -eux
58+
yes 2>/dev/null | sdkmanager --licenses >/dev/null
59+
yes 2>/dev/null | sdkmanager --install "platform-tools" "build-tools;34.0.0" "platforms;android-33" >/dev/null
6060
6161
- name: Verify platform tools
6262
run: |
63-
set -euxo pipefail
63+
set -eux
6464
command -v adb
6565
adb version
6666

0 commit comments

Comments
 (0)