-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat(autoprofile): rework prebuilds #990
Conversation
ac9c34a
to
51da462
Compare
RFR but do not merge. We need to wait for the merge & release of prebuild/prebuildify-cross#18. |
Awesome work 🥳 |
const childProcess = require('child_process'); | ||
|
||
const minNodeVersion = require('../package.json').engines.node; | ||
const excludeTargets = ['15.0.0', '17.0.0', '19.0.0']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion:We are keeping a static array for excludeTargets. This array is used only if no ABI is specified. Consider adding a comment here or mentioning this information in the contributing.md file for clarity and future contributors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah hmmm I am wondering if we should remove the whole logic if no abi version is present.
It was helpful for the initial build, but in the future we will only build a specific abi version.
prebuildify-cross released 5.1.0. Will update 👍 |
3bb4a96
to
338cf41
Compare
refs 149946
[ci skip]
[ci skip]
[ci skip]
d61c800
to
6f0093c
Compare
Closing because of wrong branch name. |
refs 149946
Move away from manual prebuilds for the autoprofile package to using prebuildify.
The PR replaces the prebuilds for darwin x64 and linux x64 (musl + glibc) and adds more prebuilds for darwin arm64 (m1), linux arm64 and armv6 and armv7 (raspberry pi).
This is the first iteration. The next iteration is to get rid of the manual prebuilds in the shared metrics package.
Testing / QA
Installing the autoprofiler on darwin x64 from local source without prebuild
Installing the autoprofiler on darwin x64 from local source with prebuild
Installing the autoprofiler on darwin x64 from npm including manual prebuilds
-> caused by a bug in the node-gyp-fallback script.
Installing the autoprofiler on linux x64 musl from npm including manual prebuilds
Installing the autoprofiler on linux x64 musl from local source with prebuild
Installing the autoprofiler on linux x64 musl from local source without prebuild
Installing the autoprofiler on linux x64 glibc from npm including manual prebuilds
Installing the autoprofiler on linux x64 glibc from local source with prebuild
Installing the autoprofiler on linux x64 glibc from local source without prebuild
Installing the autoprofiler on linux arm64 glibc from npm including manual prebuilds
Installing the autoprofiler on linux arm64 glibc from local source with prebuild
Tasks