Skip to content
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

Test on GitHub Actions windows-2025 image #3116

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Jan 6, 2025

Note

Three lines will need to be changed when Visual Studio 2025 ships near the end of 2025.

  • .github/workflows/visual-studio.yml -- One line.
  • lib/find-visualstudio.js -- Two lines.

https://learn.microsoft.com/en-us/windows-server/get-started/windows-server-release-info
https://learn.microsoft.com/en-us/windows-server/get-started/whats-new-windows-server-2025

The normal GitHub Actions tests pass on Windows Server 2025 but visual-studio/visual-studio (windows-2025, 2025) fails with:

gyp verb find VS msvs_version was set from command line or npm config
gyp verb find VS - looking for Visual Studio version 2025
gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt

Windows 2025 currently ships with Visual Studio 2022.

vswhere -latest -property installationPath

C:\Program Files\Microsoft Visual Studio\2022\Enterprise
Checklist
  • npm install && npm run lint && npm test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

@cclauss cclauss marked this pull request as draft January 6, 2025 15:30
@cclauss cclauss added the Windows label Jan 6, 2025
lib/find-visualstudio.js Outdated Show resolved Hide resolved
lib/find-visualstudio.js Outdated Show resolved Hide resolved
@cclauss cclauss force-pushed the GitHub-Actions-windows-2025 branch from a40c064 to aa2aa3e Compare January 7, 2025 13:18
@cclauss cclauss force-pushed the GitHub-Actions-windows-2025 branch from aa2aa3e to dce3aef Compare January 7, 2025 13:21
@cclauss cclauss changed the title DRAFT: Test on GitHub Actions windows-2025 image Test on GitHub Actions windows-2025 image Jan 7, 2025
@cclauss cclauss marked this pull request as ready for review January 7, 2025 13:32
@cclauss cclauss changed the title Test on GitHub Actions windows-2025 image Test on GitHub Actions windows-2025 image Jan 7, 2025
@@ -456,6 +457,8 @@ class VisualStudioFinder {
return 'v142'
} else if (versionYear === 2022) {
return 'v143'
} else if (versionYear === 2025) {
return 'v143' // Fix this when Visual Studio 2025 ships
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is these VS 2025 changes required now? Shall we add these when VS 2025 is actually released?

Copy link
Contributor Author

@cclauss cclauss Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests will fail on Windows 2025 without these mods because Windows 2025 currently ships with Visual Studio 2022.

That is probably a question for @StefanStojanovic. I am not a Windows user but if Windows 2025 is available on GitHub Actions, it will not be long before new issues are opened about using it. The great news is that it seems to work out-of-the box and in some tests is quite a bit faster. The only incompatibility appears in our integration tests because we are still many months away from having a Visual Studio 2025.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants