Skip to content

Conversation

@konsumer
Copy link
Collaborator

@konsumer konsumer commented Jun 9, 2022

This is untested, in the context of the github action. but the script can be used to cross-build for linux arm & arm64:

docker run --platform linux/arm -it --rm -v "${PWD}:/work" -w /work node ./tools/crossbuild.sh
docker run --platform linux/arm64 -it --rm -v "${PWD}:/work" -w /work node ./tools/crossbuild.sh

You need qemu & binfmt setup (so you can cross-run docker) which as I understand it docker/setup-qemu-action action does, so I added that to the workflows.

Even if the action doesn't work, the script makes it easier for me to build for linux arm & arm64 on my Mac M1.

@konsumer konsumer requested review from RobLoach and twuky June 9, 2022 05:31
@RobLoach RobLoach merged commit c12fe0f into master Jun 13, 2022
@RobLoach RobLoach deleted the crossbuild branch October 5, 2022 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants