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

Switch to windows-2022 hosted runners #3056

Merged
merged 10 commits into from
May 25, 2024
Merged

Switch to windows-2022 hosted runners #3056

merged 10 commits into from
May 25, 2024

Conversation

kennykerr
Copy link
Collaborator

In an attempt to fix #3054 build issues, I'm testing whether we can switch to the latest GitHub runners so that we can build with VS 2022 rather than 2019.

I expect action.yml will also need to be "fixed" as it has some hardcoded paths.

@kennykerr
Copy link
Collaborator Author

@riverar lib.yml uses vswhere - I assume we can do the same in action.yml to avoid these hardcoded paths?

$VisualStudioRoot = & vswhere -latest -property installationPath -format value

@riverar
Copy link
Collaborator

riverar commented May 24, 2024

We could, yup. I'm not really a fan of vswhere honestly but that's me.

@kennykerr
Copy link
Collaborator Author

I don't really care - just noticed that's what lib.yml does - I don't have it installed locally for some reason so I assume it doens't even come with Visual Studio.

@kennykerr
Copy link
Collaborator Author

It would just be nice not to have to hardcode these paths.

@ChrisDenton
Copy link
Collaborator

vswhere should always be installed with visual studio. And always in the same path: %ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe source: https://github.com/Microsoft/vswhere?tab=readme-ov-file#visual-studio-locator

@riverar riverar requested a review from ChrisDenton May 25, 2024 02:51
Copy link
Collaborator

@ChrisDenton ChrisDenton left a comment

Choose a reason for hiding this comment

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

lgtm!

@riverar
Copy link
Collaborator

riverar commented May 25, 2024

Thanks!

@riverar riverar merged commit 92e4fd7 into master May 25, 2024
90 checks passed
@riverar riverar deleted the windows-2022 branch May 25, 2024 16:11
mati865 pushed a commit to mati865/windows-rs that referenced this pull request Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants