-
Notifications
You must be signed in to change notification settings - Fork 278
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: use pkg-prebuilds
#507
Conversation
Sorry if I was unclear, and this is really more of a general Github Actions question that I've never found a good answer for: When testing a change that's primarily a Github Action change, how do you go about trying it out without polluting the git history with lots of little changes? And then, explicitly for this case: how do I pull this PR into my own space and test it? |
And to clarify, I don't want to run these Github Actions locally, but actually run them on Github's infrastructure, but isolated from this repo. |
I generally do it in a branch, then either squash the branch when merging it so it becomes a single commit in master, or manually copy the resulting changes into a new branch. There might be better ways of testing without iterating so much, but I havent found them yet
The gh cli tool probably has something to help here, but you can checkout a PR to your own branch name with:
You can then push that branch to here or another repository. |
I was just looking at that. Thanks. |
argh I am so bad at github today
Okay, I have done tests on a handful of machines and architectures and looks like the shared libraries are being loaded correctly, and nothing is obviously broken. Woohoo! Two more questions:
|
I think it would make sense to release both as 3.0, I don't see any benefit to releasing this as 3.0 then almost immediately doing a 4.0 for the async stuff
I would do a squash merge |
Another question: With |
Yes, it is doing the same flow of using the But it most likely isn't necessary for them to do a build, as the github actions changes included here does produce prebuilds for:
all the linux builds are being made in docker using debian:10 images, which should minimise any potential glibc version issues. This covers all of the Tier 1 supported platforms https://github.com/nodejs/node/blob/v18.x/BUILDING.md#platform-list |
Great! merged |
And when it comes time to |
Yes that is correct |
Builds on #490
CI runs: https://github.com/Julusian/node-hid/actions?query=branch%3Aupstream-pkg-prebuilds
Example of how it will look once published: https://www.npmjs.com/package/@julusian/hid/v/3.0.0-2?activeTab=code