-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
(Public Beta) Windows Server 2022 with Visual Studio 2022 is now available #3949
Comments
Because patch does not installed on windows-2022. actions/runner-images#3949 > Only pure MSYS2 is installed. No additional packages
Because patch does not installed on windows-2022. actions/runner-images#3949 > Only pure MSYS2 is installed. No additional packages
Because patch does not installed on windows-2022. actions/runner-images#3949 > Only pure MSYS2 is installed. No additional packages
Can you please update the Visual Studio version on this image to Preview 4? Thanks! |
Hi @robertmclaws! |
Thanks Mike! It's really cool that you folks have automated these releases and such... thanks so much for your efforts! Would be really nice though if you folks could put out image updates day-and-date with Visual Studio releases, especially around major versions (like Release Candidates). OR give us an easy way to trigger VS updates from a task. It's tough to meet our deadlines when builds that run locally won't run in CI because VS releases in our pipeline are a week behind. Thanks again! |
@robertmclaws unfortunately, we are usually not aware of such major changes in VS beforehand. It would be great if you or any other VS user would create an issue here in advance next time so we can push the critical update on time rather than follow up our usual deployment schedule (start on Monday and finish on Wednesday-Thursday). |
@robertmclaws the new image with update VS has been deployed |
We are going to stop treating the image as beta starting from November, 15. |
H |
Hello. How can I enable on the I am getting this error on my Action, btw:
|
I would recommend moving away from The standard library was not modularized for C++20 so you're using a non-standard extension. Using Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Preview"
$componentsToAdd = @(
# add components here, i don't know the name of the component with the standard library modules
)
[string]$workloadArgs = $componentsToAdd | ForEach-Object {" --add " + $_}
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",$workloadArgs, '--quiet', '--norestart', '--nocache')
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
if ($process.ExitCode -eq 0)
{
Write-Host "components have been successfully added"
}
else
{
Write-Host "components were not installed"
exit 1
} |
So I must add the modules component, copy paste your script into my project and create a new named action inside the current one? That location (Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer") is the real location of the preinstalled msvc2022 on the |
yes |
I found the name of the component, but I am getting no success with this way
The output:
|
@sylveon sorry, but I am not being able of make the script works. I get the name of the component directly from the Microsoft page. Thanks! |
This is available in github actions since some time now [1]. [1]: actions/runner-images#3949
) * .github/workflows/windows.yml: Add support for Visual Studio 2022 This is available in github actions since some time now [1]. [1]: actions/runner-images#3949 * README.md: Add VS 2022 [skip ci] The version and the build engine version (aka MSBuild version) were taken from [1]. [1]: https://github.com/actions/virtual-environments/blob/win22/20220116.1/images/win/Windows2022-Readme.md
It doesn't ship older rubies: actions/runner-images#3949
Not excited that InnoSetup is no longer included on windows-latest. |
Because GH now use windows-2022 as the windows-latest, see: actions/runner-images#3949
Windows 2019 images uses chrome version 112. Ref: https://github.com/actions/runner-images/pull/7494/files Windows 2022 (latest) images uses chrome version 113. Ref: https://github.com/actions/runner-images/pull/7528/files Windows 2019 is still updated regularly. Differences: actions/runner-images#3949 Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
@Pyzyryab -- did you ever solve the C++ modules issue? It's been affecting me, too. The documentation makes it sound like |
Windows Server 2022 availability 🚀
Hello everyone!
We are happy to announce that Windows Server 2022 is available for GitHub Actions and Azure DevOps users 🥳
You can use
windows-2022
image label in your YAML to select this image.GitHub Actions
Azure DevOps
"Beta" status
The image is marked as "beta" for now. It means some software can be unstable on the new platform. Also there could be queueing issues as the capacity will be balanced only throughout the next weeks.
Known issues:
Please report any problems with the new image to this repository.
Any issues related to Azure DevOps tasks should be reported to https://github.com/microsoft/azure-pipelines-tasks.
Software differences
The full documentation of Windows Server 2022 image can be found in image README.
The software set is different between Windows Server 2019 and 2022. We have deprecated some legacy software with low usage and temporarily disabled software that is not supported on the new platform yet. Also, for tools with multiple installed versions we have reconsidered the list of versions based on usage.
Please find differences in the table below:
Workloads: recommended + custom + wix components
Workloads: recommended set
If your use-case requires using VS 2019, continue using Windows Server 2019 image. We don't have plans to deprecate it in near future.
Architectures: x64 & x86
Pre-cached versions: 2.7, 3.5, 3.6, 3.7, 3.8, 3.9
Architectures: x64
Pre-cached versions: 3.7, 3.8, 3.9
Pre-cached versions: 2.4, 2.5, 2.6, 2.7, 3.0
Pre-cached versions: 2.7, 3.0
Pre-cached versions: 1.13, 1.14, 1.15, 1.16
Pre-cached versions: 1.15, 1.16
- actions/setup-go (GitHub Actions)
- Go Tool Installer (Azure DevOps)
Pre-installed versions: 8, 11, 13
Pre-installed versions: 8, 11
- actions/setup-java (GitHub Actions)
- Java Tool Installer (Azure DevOps)
Platforms: >= 19.x
CMake: 3.10.2, 3.18.1
Google APIs: 21, 22, 23, 24
NDK: 21, 22
Platforms: >= 27.x
CMake: 3.18.1
Google APIs: -
NDK: 21, 22
Please consider using tasks to install any version on-flight:
- actions/setup-dotnet (GitHub Actions)
- Use .NET Core (Azure DevOps)
Zipped: 1.0.0, 1.6.0, 2.3.2, 2.6.0, 3.1.0, 3.5.0, 3.8.0, 4.3.0, 4.4.0, 4.7.0, 5.5.0, 5.9.0, 6.1.0
Zipped: -
- azure-powershell-action (GitHub Actions)
- Azure PowerShell (Azure DevOps)
The following software were not installed on Windows Server 2022 images by default: Miniconda, Google Cloud SDK, InnoSetup, NSIS, Perl, sbt, Cloud Foundry CLI, BizTalk Server and Client, WebPlatformInstaller, Windows Driver Kit
The text was updated successfully, but these errors were encountered: