-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
github/workflows: Stop using windows-2019 runner for Windows CI. #17468
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
github/workflows: Stop using windows-2019 runner for Windows CI. #17468
Conversation
@stinos FYI. I'm not sure what the best thing to do is, but I simply replaced |
Code size report:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #17468 +/- ##
=======================================
Coverage 98.54% 98.54%
=======================================
Files 169 169
Lines 21941 21941
=======================================
Hits 21621 21621
Misses 320 320 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The windows-2025 builder only has VS 2022 installed. So if we drop windows-2019, we will need to install VS 2019 manually like we do for VS 2017. I.e. duplicate this and adjust for Visual Studio 2019. (And we can just make it window-latest.) micropython/.github/workflows/ports_windows.yml Lines 49 to 54 in 5f4abeb
|
.github/workflows/ports_windows.yml
Outdated
- uses: actions/setup-python@v5 | ||
if: matrix.runner == 'windows-2019' | ||
if: matrix.runner == 'windows-2025' | ||
with: | ||
python-version: '3.9' |
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.
Last time I checked, windows-2025 still uses python 3.9 by default, so we can just drop this whole section if we are dropping use of the windows-2019 runner. This was only needed because windows-2019 used an older python version by default.
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.
Thanks, I've now removed this setup-python action.
53912b1
to
3007f0c
Compare
Thanks for the hint, that's now done. But now we get errors again about NAN not being a constant... any ideas how to extend the existing |
.github/workflows/ports_windows.yml
Outdated
@@ -31,7 +31,7 @@ jobs: | |||
runner: windows-latest | |||
vs_version: '[15, 16)' | |||
- visualstudio: '2019' | |||
runner: windows-2019 | |||
runner: windows-latest | |||
vs_version: '[16, 17)' | |||
- visualstudio: '2022' | |||
runner: windows-2022 |
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.
Maybe this should also be windows-latest
for consistency? In the end we don't really care on what windows (or whatever GH makes from it) version this runs. The build tools are the key difference.
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.
I thought the intention was to test on different Windows version? But I'm happy to change them all to windows-latest
.
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.
I thought the intention was to test on different Windows version?
@dlech was it? Or rather just a byproduct of which image contained which VS version ?
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.
It was just a byproduct of VS version. So, yes, we could pull that out of the matrix and just set the runner to always be windows-latest
.
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've made everything use windows-latest
and factored that out of the matrix.
Based on https://stackoverflow.com/questions/79195142/recent-msvc-versions-dont-treat-nan-as-constant-workaround/79324199#79324199 the original commit only worked by accident at that time, because this is not actually related to compiler version (i.e.
should be good. |
3007f0c
to
1eba656
Compare
I've updated it to use |
1eba656
to
6d9b2e0
Compare
It's actually a bug in the Windows SDK, not MSVC, as per https://stackoverflow.com/questions/79195142/recent-msvc-versions-dont-treat-nan-as-constant-workaround/79324199#79324199 Thanks to @stinos. Signed-off-by: Damien George <damien@micropython.org>
The windows-2019 runner has been deprecated by GitHub, so stop using that. Also take the chance to stop using windows-2022 and just use windows-latest everywhere. Signed-off-by: Damien George <damien@micropython.org>
6d9b2e0
to
9bde125
Compare
Summary
This runner has been deprecated by GitHub.
Testing
CI should test this.