Temporarily use 22.3.1 for latest builds.

This is a temporary fix while we are rolling out the new GraalVM for JDK17/20 release.
This commit is contained in:
Fabio Niephaus
2023-06-13 19:17:04 +02:00
parent babc303d7e
commit b11d36630f
6 changed files with 67 additions and 13 deletions

View File

@@ -47,6 +47,22 @@ export async function getLatestRelease(
).data
}
export async function getTaggedRelease(
repo: string,
tag: string
): Promise<c.LatestReleaseResponse['data']> {
const githubToken = getGitHubToken()
const options = githubToken.length > 0 ? {auth: githubToken} : {}
const octokit = new GitHubDotCom(options)
return (
await octokit.request('GET /repos/{owner}/{repo}/releases/tags/{tag}', {
owner: c.GRAALVM_GH_USER,
repo,
tag
})
).data
}
export async function downloadAndExtractJDK(
downloadUrl: string
): Promise<string> {