Skip to content

Downloading x64 version on arm64 Windows runners #168

@chris-addison

Description

@chris-addison

Hey,
Since Bun now offcially supports and provides native arm64 binaries on Windows, it should be downloaded and used. Instead, the x64 version is used.

Logs from my recent run:

Run oven-sh/setup-bun@v2
Warning: ⚠️ Bun does not provide native arm64 builds for Windows.
Using x64 baseline build which will run through Microsoft's x64 emulation layer.
This may result in reduced performance and potential compatibility issues.
💡 For best performance, consider using x64 Windows runners or other platforms with native support.
Downloading a new version of Bun: https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-windows-x64-baseline.zip
"C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('C:\a\_temp\6e314564-f35d-4b74-a4f9-e4ce45341f49.zip', 'C:\a\_temp\87922f60-c2b8-4863-be98-b343c194b979', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath 'C:\a\_temp\6e314564-f35d-4b74-a4f9-e4ce45341f49.zip' -DestinationPath 'C:\a\_temp\87922f60-c2b8-4863-be98-b343c194b979' -Force } else { throw $_ } } ;"
C:\Users\runneradmin\.bun\bin\bun.exe --revision
1.3.10+30e609e08

The version is specified as 'latest'. I'm using the windows-11-arm runner.

This is what's in my workflow file:

      - name: Setup Bun
        uses: oven-sh/setup-bun@v2
        with:
          bun-version: latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions