File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ jobs:
113
113
Get-ChildItem env:
114
114
foreach ($version in $versionsArr)
115
115
{
116
- $envName = "JAVA_HOME_$version "
116
+ $envName = "JAVA_HOME_$version_${env:RUNNER_ARCH} "
117
117
Write-Host "Check ${env:\$envName}"
118
118
$JavaVersionPath = (Get-ChildItem env: | grep "$envName").Replace("$envName", "").Trim()
119
119
if (-not (Test-Path "$JavaVersionPath")) {
Original file line number Diff line number Diff line change @@ -103210,7 +103210,7 @@ class JavaBase {
103210
103210
core.setOutput('distribution', this.distribution);
103211
103211
core.setOutput('path', toolPath);
103212
103212
core.setOutput('version', version);
103213
- core.exportVariable(`JAVA_HOME_${majorVerssion}`, toolPath);
103213
+ core.exportVariable(`JAVA_HOME_${majorVerssion}_${this.architecture.toUpperCase()} `, toolPath);
103214
103214
}
103215
103215
}
103216
103216
exports.JavaBase = JavaBase;
Original file line number Diff line number Diff line change @@ -148,6 +148,6 @@ export abstract class JavaBase {
148
148
core . setOutput ( 'distribution' , this . distribution ) ;
149
149
core . setOutput ( 'path' , toolPath ) ;
150
150
core . setOutput ( 'version' , version ) ;
151
- core . exportVariable ( `JAVA_HOME_${ majorVerssion } ` , toolPath ) ;
151
+ core . exportVariable ( `JAVA_HOME_${ majorVerssion } _ ${ this . architecture . toUpperCase ( ) } ` , toolPath ) ;
152
152
}
153
153
}
You can’t perform that action at this time.
0 commit comments