mirror of
https://gitea.com/actions/setup-android.git
synced 2025-12-11 02:47:48 +00:00
Debug installing android sdk tools
This commit is contained in:
2
dist/main/index.js
vendored
2
dist/main/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/post/index.js
vendored
2
dist/post/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -16,13 +16,13 @@ export const HOME = os.homedir()
|
||||
export const GRADLE_CACHE_GLOB = [
|
||||
'**/*.gradle',
|
||||
'**.gradle',
|
||||
'gradle.properties'
|
||||
'**/gradle.properties'
|
||||
]
|
||||
export const GRADLE_CACHE_DIR = path.join(HOME, '.gradle', 'cache')
|
||||
export const GRADLE_CACHE_KEY = 'GRADLE_CACHE_KEY'
|
||||
|
||||
// For caching the gradle wrapper in ~/.gradle/wrapper
|
||||
export const GRADLE_WRAPPER_GLOB = ['gradle/wrapper/**', 'gradlew*']
|
||||
export const GRADLE_WRAPPER_GLOB = ['**/gradle/wrapper/**', '**/gradlew*']
|
||||
export const GRADLE_WRAPPER_DIR = path.join(HOME, '.gradle', 'wrapper')
|
||||
export const GRADLE_WRAPPER_KEY = 'GRADLE_WRAPPER_KEY'
|
||||
|
||||
|
||||
@@ -26,6 +26,9 @@ export async function install(): Promise<void> {
|
||||
const cmdlineTools = await tc.extractZip(cmdlineToolsZip)
|
||||
const sdkManager = path.join(cmdlineTools, 'tools', 'sdkmanager')
|
||||
|
||||
console.log(fs.readdirSync(cmdlineTools))
|
||||
console.log(fs.existsSync(sdkManager))
|
||||
|
||||
exec.exec(
|
||||
sdkManager,
|
||||
['--include_obsolete', `--sdk_root=${ANDROID_SDK_ROOT}`, 'tools'],
|
||||
|
||||
Reference in New Issue
Block a user