-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add helper scripts for updating headers and symbols.js #7
Conversation
- update-headers.js: Fetch latest headers from nodejs/node - write-symbols.js: Use clang to process headers to create symbols.js
Sample Action RunsDo not create PR if branch exists
Do not create PR if no changes
Run on daily schedule at 00:00 UTC |
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.
Just some comments.
- Add 'use strict' - Make write-symbols main() async
- Remove double string interpolation Co-authored-by: Chengzhong Wu <[email protected]>
@KevinEady I think when we discussed in a Node-API meeting you were going to update to remove the Experimental part of the headers. Was that added and I just can't find it? |
@KevinEady, I found the part that removes the experimental functions from the symbols but I think we also should do that in the header file as well. |
Addressed in 41f0767...36a1e92 This action run https://github.com/KevinEady/node-api-headers/actions/runs/4174541956/jobs/7228252444 created PR https://github.com/KevinEady/node-api-headers/pull/10/files?diff=split&w=1 |
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.
LGTM
Added two new scripts runnable via
npm
:npm run-script update-headers
: Fetch latest headers from nodejs/node and removesNAPI_EXPERIMENTAL
preprocessor checks of#ifdef
and#ifndef
, assuming it is not defined.npm run-script write-symbols
: Useclang
to process headers to createsymbols.js
This PR also adds a GitHub Actions workflow for performing the sync on a daily schedule (also can be manually triggered).
Relates: #2