Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crossbuild #156

Merged
merged 2 commits into from
Jun 13, 2022
Merged

Crossbuild #156

merged 2 commits into from
Jun 13, 2022

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.

2 participants