RobLoach / node-raylib

Node.js bindings for Raylib
https://robloach.github.io/node-raylib/
Other
245 stars 20 forks source link

Crossbuild #156

Closed konsumer closed 2 years ago

konsumer commented 2 years ago

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.