-
Notifications
You must be signed in to change notification settings - Fork 516
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
Move to prebuild #665
Comments
+1 |
I've created a branch that uses prebuildify. https://github.com/thom-nic/node.bcrypt.js/tree/prebuildify-and-docker-build It builds locally on darwin-x64 and I can create prebuilds in a Docker container for linux-x64. I have Dockerfile definitions to cross-build for armhf and aarch64. Builds succeed on both of those environments however unit tests fail. I would love to get some eyes on the failing tests. Basic prebuildify usage:
To start with Docker for cross-platform build, do this from my branch:
Then you'll see (on MacOS, have already built locally):
To run the armhf build, it is similar but add -f to choose a different docker file:
To not run the failing tests then start an interactive session for test/debugging, do:
As a baseline I'm going to try running the unit tests on a native armhf device and see if unit tests pass or fail there. The docker files were inspired by node-sqlite3 and I've adapted it for cross-platform builds with prebuildify in that project. Feedback welcome. |
Thanks a lot @thom-nic |
@recrsn would you like me to submit a PR? I made some tweaks so it is as merge-friendly as possible. |
@thom-nic Please submit a PR, I can check why the tests are failing |
@recrsn Any idea when v6 will be released? |
node-pre-gyp
has been causing a lot of installation errors. Move to prebuilt. This should fix most of the installation errors.This task is high priority
The text was updated successfully, but these errors were encountered: