Skip to content

Commit 602de50

Browse files
ci: stop installing the obsolete 'tools' SDK package
setup-android installs 'tools platform-tools' by default. The SDK repository only lists 'tools' as obsolete now, and the sdkmanager on the current runner image fails on it, so the Setup Android SDK step fails before anything is built.
1 parent 857834d commit 602de50

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎.github/workflows/npm_release.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ jobs:
5252
cache: gradle
5353
- name: Setup Android SDK
5454
uses: android-actions/setup-android@651bceb6f9ca583f16b8d75b62c36ded2ae6fc9c # v4.0.0
55+
with:
56+
# The action's default also asks for 'tools', which the SDK repository
57+
# only lists as obsolete and current sdkmanager versions refuse.
58+
packages: platform-tools
5559
- name: Setup NDK
5660
run: |
5761
echo "y" | sdkmanager "cmake;$CMAKE_VERSION"
@@ -151,6 +155,10 @@ jobs:
151155
cache: gradle
152156
- name: Setup Android SDK
153157
uses: android-actions/setup-android@651bceb6f9ca583f16b8d75b62c36ded2ae6fc9c # v4.0.0
158+
with:
159+
# The action's default also asks for 'tools', which the SDK repository
160+
# only lists as obsolete and current sdkmanager versions refuse.
161+
packages: platform-tools
154162
- name: Setup NDK
155163
run: |
156164
echo "y" | sdkmanager "cmake;$CMAKE_VERSION"

‎.github/workflows/pull_request.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
cache: gradle
4242
- name: Setup Android SDK
4343
uses: android-actions/setup-android@651bceb6f9ca583f16b8d75b62c36ded2ae6fc9c # v4.0.0
44+
with:
45+
# The action's default also asks for 'tools', which the SDK repository
46+
# only lists as obsolete and current sdkmanager versions refuse.
47+
packages: platform-tools
4448
- name: Setup NDK
4549
run: |
4650
echo "y" | sdkmanager "cmake;$CMAKE_VERSION"
@@ -123,6 +127,10 @@ jobs:
123127
cache: gradle
124128
- name: Setup Android SDK
125129
uses: android-actions/setup-android@651bceb6f9ca583f16b8d75b62c36ded2ae6fc9c # v4.0.0
130+
with:
131+
# The action's default also asks for 'tools', which the SDK repository
132+
# only lists as obsolete and current sdkmanager versions refuse.
133+
packages: platform-tools
126134
- name: Setup NDK
127135
run: |
128136
echo "y" | sdkmanager "cmake;3.6.4111459"

0 commit comments

Comments
 (0)