mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 03:26:45 +08:00
Log whats happening
This commit is contained in:
parent
05dd7fbe75
commit
69118bc9c6
@ -50,6 +50,7 @@ function getJava(versionSpec, arch, jdkFile) {
|
|||||||
const compressedFileExtension = getFileEnding(jdkFile);
|
const compressedFileExtension = getFileEnding(jdkFile);
|
||||||
let tempDir = path.join(tempDirectory, 'temp_' + Math.floor(Math.random() * 2000000000));
|
let tempDir = path.join(tempDirectory, 'temp_' + Math.floor(Math.random() * 2000000000));
|
||||||
const jdkDir = yield unzipJavaDownload(jdkFile, compressedFileExtension, tempDir);
|
const jdkDir = yield unzipJavaDownload(jdkFile, compressedFileExtension, tempDir);
|
||||||
|
core.debug(`jdk extracted to ${jdkDir}`);
|
||||||
toolPath = yield tc.cacheDir(jdkDir, 'Java', versionSpec, arch);
|
toolPath = yield tc.cacheDir(jdkDir, 'Java', versionSpec, arch);
|
||||||
}
|
}
|
||||||
let extendedJavaHome = 'JAVA_HOME_' + versionSpec + '_' + arch;
|
let extendedJavaHome = 'JAVA_HOME_' + versionSpec + '_' + arch;
|
||||||
|
@ -45,6 +45,7 @@ export async function getJava(
|
|||||||
compressedFileExtension,
|
compressedFileExtension,
|
||||||
tempDir
|
tempDir
|
||||||
);
|
);
|
||||||
|
core.debug(`jdk extracted to ${jdkDir}`);
|
||||||
toolPath = await tc.cacheDir(jdkDir, 'Java', versionSpec, arch);
|
toolPath = await tc.cacheDir(jdkDir, 'Java', versionSpec, arch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user