Skip to content

architecture parameter is ignored #55

@emgre

Description

@emgre

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

setup-java/src/installer.ts

Lines 194 to 203 in 5c87b70

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions