mirror of
https://gitea.com/actions/setup-android.git
synced 2026-03-26 06:38:21 +00:00
Add cmdline-tools version 20.0 ( 14742923 )
This commit is contained in:
1
.github/workflows/build-test.yml
vendored
1
.github/workflows/build-test.yml
vendored
@@ -66,6 +66,7 @@ jobs:
|
||||
- windows-2025
|
||||
- windows-2022
|
||||
cmdline-tools-version:
|
||||
- 14742923
|
||||
- 12266719
|
||||
- 11479570
|
||||
- 11076708
|
||||
|
||||
@@ -61,7 +61,7 @@ Additional packages can be installed at a later time by calling sdkmanager manua
|
||||
Command line tools are versioned using two variables - short and long.
|
||||
Long one is the build number, used in the zip URL, short one is the human friendly version name.
|
||||
|
||||
By default, setup-android installs version 12266719 (short version 16.0).
|
||||
By default, setup-android installs version 14742923 (short version 20.0).
|
||||
|
||||
To install a different version, call setup-android with desired long version as the input parameter `cmdline-tools-version`:
|
||||
```yaml
|
||||
@@ -74,6 +74,7 @@ To install a different version, call setup-android with desired long version as
|
||||
#### Version table
|
||||
| Short version | Long version |
|
||||
|---------------| --- |
|
||||
| 20.0 | 14742923 |
|
||||
| 16.0 | 12266719 |
|
||||
| 13.0 | 11479570 |
|
||||
| 12.0 | 11076708 |
|
||||
|
||||
@@ -6,7 +6,7 @@ inputs:
|
||||
cmdline-tools-version:
|
||||
description: 'cmdline-tools-version. See https://developer.android.com/studio#command-line-tools-only'
|
||||
required: false
|
||||
default: '12266719'
|
||||
default: '14742923'
|
||||
|
||||
accept-android-sdk-licenses:
|
||||
description: 'Android SDK is usable only after the license agreement. Should setup-android agree to the licences, provided by "sdkmanager --licenses"'
|
||||
|
||||
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -28243,6 +28243,8 @@ const fs = __importStar(__nccwpck_require__(9896));
|
||||
const os = __importStar(__nccwpck_require__(857));
|
||||
function getVersionShort(versionLong) {
|
||||
switch (versionLong) {
|
||||
case '14742923':
|
||||
return '20.0';
|
||||
case '12266719':
|
||||
return '16.0';
|
||||
case '11479570':
|
||||
|
||||
@@ -7,6 +7,8 @@ import * as os from 'os'
|
||||
|
||||
function getVersionShort(versionLong: string): string {
|
||||
switch (versionLong) {
|
||||
case '14742923':
|
||||
return '20.0'
|
||||
case '12266719':
|
||||
return '16.0'
|
||||
case '11479570':
|
||||
|
||||
Reference in New Issue
Block a user