mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] Fix Java 21 location (#8585)
This commit is contained in:
committed by
GitHub
parent
6449d50ffd
commit
3e7beab7fa
@@ -73,6 +73,8 @@ function Install-JavaJDK {
|
||||
|
||||
# We have to replace '+' sign in the version to '-' due to the issue with incorrect path in Android builds https://github.com/actions/runner-images/issues/3014
|
||||
$fullJavaVersion = $asset.version.semver -replace '\+', '-'
|
||||
# Remove 'LTS' suffix from the version if present
|
||||
$fullJavaVersion = $fullJavaVersion -replace '\.LTS$', ''
|
||||
# Create directories in toolcache path
|
||||
$javaToolcachePath = Join-Path -Path $env:AGENT_TOOLSDIRECTORY -ChildPath "Java_Temurin-Hotspot_jdk"
|
||||
$javaVersionPath = Join-Path -Path $javaToolcachePath -ChildPath $fullJavaVersion
|
||||
|
||||
Reference in New Issue
Block a user