mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-01-18 19:26:39 +08:00
Export archive as output.
This commit is contained in:
parent
eacba1575b
commit
2f82a03f52
4
dist/cleanup/index.js
generated
vendored
4
dist/cleanup/index.js
generated
vendored
@ -18293,7 +18293,9 @@ function downloadExtractAndCacheJDK(downloader, toolName, version) {
|
||||
core.info(`Found ${toolName} ${version} in tool-cache @ ${toolPath}`);
|
||||
}
|
||||
else {
|
||||
const extractDir = yield extract(yield downloader());
|
||||
const archive = yield downloader();
|
||||
core.setOutput('archive', archive);
|
||||
const extractDir = yield extract(archive);
|
||||
core.info(`Adding ${toolName} ${version} to tool-cache ...`);
|
||||
toolPath = yield tc.cacheDir(extractDir, toolName, semVersion);
|
||||
}
|
||||
|
4
dist/main/index.js
generated
vendored
4
dist/main/index.js
generated
vendored
@ -19072,7 +19072,9 @@ function downloadExtractAndCacheJDK(downloader, toolName, version) {
|
||||
core.info(`Found ${toolName} ${version} in tool-cache @ ${toolPath}`);
|
||||
}
|
||||
else {
|
||||
const extractDir = yield extract(yield downloader());
|
||||
const archive = yield downloader();
|
||||
core.setOutput('archive', archive);
|
||||
const extractDir = yield extract(archive);
|
||||
core.info(`Adding ${toolName} ${version} to tool-cache ...`);
|
||||
toolPath = yield tc.cacheDir(extractDir, toolName, semVersion);
|
||||
}
|
||||
|
@ -65,7 +65,9 @@ export async function downloadExtractAndCacheJDK(
|
||||
if (toolPath) {
|
||||
core.info(`Found ${toolName} ${version} in tool-cache @ ${toolPath}`)
|
||||
} else {
|
||||
const extractDir = await extract(await downloader())
|
||||
const archive = await downloader()
|
||||
core.setOutput('archive', archive)
|
||||
const extractDir = await extract(archive)
|
||||
core.info(`Adding ${toolName} ${version} to tool-cache ...`)
|
||||
toolPath = await tc.cacheDir(extractDir, toolName, semVersion)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user