mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 17:36:45 +00:00
Log whats happening
This commit is contained in:
parent
05dd7fbe75
commit
69118bc9c6
2 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue