I'm trying to install an x86 JDK in a GitHub action, and I found out that the specified architecture is ignored in this script. By looking at the code, I saw that arch is not used when the script is determining which archive to download. See
|
let extension = ''; |
|
if (IS_WINDOWS) { |
|
extension = `-win_x64.zip`; |
|
} else { |
|
if (process.platform === 'darwin') { |
|
extension = `-macosx_x64.tar.gz`; |
|
} else { |
|
extension = `-linux_x64.tar.gz`; |
|
} |
|
} |
On Windows, it will always download the archive ending with
-win_x64, while it should actually download the archive ending with
-win_i686.zip when the architecture is
x86. The issue also seems to be present for other OSes (although I never tried them)
Be aware that Zulu doesn't seem to provide x86 Windows binaries for all Java versions.
I'm trying to install an x86 JDK in a GitHub action, and I found out that the specified architecture is ignored in this script. By looking at the code, I saw that
archis not used when the script is determining which archive to download. Seesetup-java/src/installer.ts
Lines 194 to 203 in 5c87b70
-win_x64, while it should actually download the archive ending with-win_i686.zipwhen the architecture isx86. The issue also seems to be present for other OSes (although I never tried them)Be aware that Zulu doesn't seem to provide x86 Windows binaries for all Java versions.