Skip to content

Bug: Amd64 installed instead of arm #111

Closed

Description

@pkruk

What happened?

Hi,

We use a github runner based on arm64 in aws, and when we start using this action, we got a strange error:

Helm tool version: 'v3.11.3' has been cached at *_tool/helm/3.11.3/arm64/linux-amd64/helm

It's looks like that actions is downloading the incorrect version according to my architecture:

uname -m
aarch64

Native script get_helm.sh is working as shine, so it's looks there is a problem in node-script:

   const arch = os.arch()
   const operatingSystem = os.type()

   switch (true) {
      case operatingSystem == LINUX && arch == ARM64:
         return util.format(
            'https://get.helm.sh/helm-%s-linux-arm64.zip',
            version
         )

not sure if the os.arch is returning in this case aarch64 instead of arm64, so the condition in switch is incorrect.

Version

  • I am using the latest version

Runner

self-hosted, linux, arm64 (graviton aws)

Relevant log output

Helm tool version: 'v3.11.3' has been cached at *_tool/helm/3.11.3/arm64/linux-amd64/helm
....
_tool/helm/3.11.3/arm64/linux-amd64/helm: cannot execute binary file: Exec format error

Activity

  1. added
    bug
    on Jun 16, 2023
  2. github-actions commented on Jun 30, 2023

    @github-actions

    This issue is idle because it has been open for 14 days with no activity.

  3. added
    idle
    on Jun 30, 2023
  4. added
    stale
    and removed
    idle
    stale
    on Jul 14, 2023
  5. github-actions commented on Jul 29, 2023

    @github-actions

    This issue is idle because it has been open for 14 days with no activity.

  6. added
    idle
    on Jul 29, 2023
  7. added
    stale
    and removed
    idle
    stale
    on Aug 12, 2023
  8. github-actions commented on Aug 26, 2023

    @github-actions

    This issue is idle because it has been open for 14 days with no activity.

  9. added
    idle
    on Aug 26, 2023
  10. added
    stale
    and removed
    idle
    on Sep 9, 2023
  11. 12 remaining items

  12. added
    idle
    on Nov 19, 2023
  13. added
    stale
    and removed
    idle
    stale
    on Dec 3, 2023
  14. github-actions commented on Dec 17, 2023

    @github-actions

    This issue is idle because it has been open for 14 days with no activity.

  15. added
    idle
    on Dec 17, 2023
  16. added
    stale
    and removed
    idle
    stale
    on Dec 31, 2023
  17. github-actions commented on Jan 14, 2024

    @github-actions

    This issue is idle because it has been open for 14 days with no activity.

  18. added
    idle
    on Jan 14, 2024
  19. added
    stale
    and removed
    idle
    stale
    on Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions