gyp.js
gyp.js copied to clipboard
Cross-compilation
Test cross compilation with host and target toolsets.
This may be tested by building node.js for ARM on non-ARM machine. Don't ask me how to do it, I don't know!
- travis-ci / docker / qemu
- https://hub.docker.com/r/multiarch/qemu-user-static/
- https://docs.travis-ci.com/user/docker/
- https://github.com/meyskens/multiarch-nodejs
.travis.yml
language: bash
sudo: required
services:
- docker
before_install:
- docker pull multiarch/qemu-user-static:register
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
# Deploy docker containers
#script:
# - make TARGET=armhf
# - make TARGET=amd64
# - docker push indutny/gyp.js
@denji thank you! I wish there were some comments and/or explanation ;)
We could perhaps look at using ci.nodejs.org? Especially when this lands in node-gyp.
@jbergstroem absolutely.