Skip to content

Cross-Compilation for linux-arm64 and win-arm64 #3

Open
@CMCDragonkai

Description

@CMCDragonkai

Specification

Currently we have cross compilation working for macos. This is because our node-gyp rebuild runs with the appropriate configuration that compiles both the arm64 and x64 native-addon, and turns it into a "universal binary". However nodejs itself doesn't publish a universal binary version that can be bundled with pkg. So the final application releases are still separate files.

For linux-arm64, we will need to introduce ARM64 cross compilation into our nix expressions.

For win-arm64, this will likely need some additional changes to the binding.gyp and investigation into visual studio.

We won't bother with linux-ia32 or win-ia32. 32 bit desktop computers are not really a thing anymore and neither with mobile devices.

Additionally for integration testing, we will need arm64 CICD runners. This seems like it should be available on gitlab soon. Lacking arm64 CICD runners, it is possible to emulate arm64 with QEMU, and that is another way to perform integration testing. Building should be possible without this just by bringing in cross compilation tooling.

Additional context

Tasks

  1. ...
  2. ...
  3. ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions