-
Notifications
You must be signed in to change notification settings - Fork 465
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
chore: add Windows with VS 2022 and Node.JS 19.x to the CI matrix #1252
Conversation
.github/workflows/ci-win.yml
Outdated
node-version: [14.x, 16.x, 18.x] | ||
os: | ||
- windows-2019 | ||
node-version: [14.x, 16.x, 18.x] |
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.
we should probably ad 19.x here as well
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.
Good point! Let me try adding it,
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.
@mhdawson , I have added Node.JS 19.x and updated the PR description.
Should I add Node.JS 19.x for non-Windows platforms in this PR too?
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.
@vmoroz yes, we should have it for all platforms. We probably should have done it in Oct when 19.x was cut.
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.
OK, I will do it then, while I am editing these files anyway. :)
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.
@mhdawson , I have added Node.JS 19x to the MacOS and Ubuntu runners. I also cleaned up the script a bit.
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
In this PR we are adding
windows-2022
OS image to the CI to test Node-API with Visual Studio 2022.We are also adding verification for Node.JS version 19.x.
The new verification matrix for Windows is:
windows-2022
- Node,JS [16.x
,18.x
,19.x
]windows-2019
- Node,JS [14.x
,16.x
,18.x
,19.x
]Note that VS 2022 is not supported by Node.JS 14.x GYP and it is not in the matrix.
For the MacOS and Ubuntu we have added printing of compiler version.
It helped to identify that:
gcc
is an alias forclang
. So, we are removing theMacOS + gcc
from the test matrix."${{ matrix.os }}" = ubuntu-*
seems to always fail and we never install the GCC version 6.5. Fixing this condition caused the script error because the package could not be found. CI uses preinstalled GCC version with the Ubuntu image which is currently11.3
. Thus, the custom logic to install compiler is removed.The new verification matrix for MacOS and Ubuntu is:
ubuntu-latest
- compiler: [gcc
,clang
] - Node,JS [14.x
,16.x
,18.x
,19.x
]macos-latest
- compiler: [clang
] - Node,JS [14.x
,16.x
,18.x
,19.x
]