Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

architecture parameter is ignored #55

Copy link
Copy link
@emgre

Description

@emgre
Issue body actions

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.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.