Upgrade CircleCI Windows Build (#10090)
Summary: * Upgrade CircleCI orb from 2.4 to 5.0 * Setup vs2022 build * Use image build-in vs2019 and vs2022 * Remove vs2017 * Remove CMAKE_CXX_STANDARD=20 Pull Request resolved: https://github.com/facebook/rocksdb/pull/10090 Reviewed By: ajkr Differential Revision: D40787942 Pulled By: jay-zhuang fbshipit-source-id: cc74c02a9f28dd784a0ba5502c4bfc9ff1a26d3emain
parent
bf497e91ad
commit
1e6f1ef894
@ -1,24 +0,0 @@ |
||||
$VS_DOWNLOAD_LINK = "https://go.microsoft.com/fwlink/?LinkId=691126" |
||||
$COLLECT_DOWNLOAD_LINK = "https://aka.ms/vscollect.exe" |
||||
curl.exe --retry 3 -kL $VS_DOWNLOAD_LINK --output vs_installer.exe |
||||
if ($LASTEXITCODE -ne 0) { |
||||
echo "Download of the VS 2015 installer failed" |
||||
exit 1 |
||||
} |
||||
$VS_INSTALL_ARGS = @("/Quiet", "/NoRestart") |
||||
$process = Start-Process "${PWD}\vs_installer.exe" -ArgumentList $VS_INSTALL_ARGS -NoNewWindow -Wait -PassThru |
||||
Remove-Item -Path vs_installer.exe -Force |
||||
$exitCode = $process.ExitCode |
||||
if (($exitCode -ne 0) -and ($exitCode -ne 3010)) { |
||||
echo "VS 2015 installer exited with code $exitCode, which should be one of [0, 3010]." |
||||
curl.exe --retry 3 -kL $COLLECT_DOWNLOAD_LINK --output Collect.exe |
||||
if ($LASTEXITCODE -ne 0) { |
||||
echo "Download of the VS Collect tool failed." |
||||
exit 1 |
||||
} |
||||
Start-Process "${PWD}\Collect.exe" -NoNewWindow -Wait -PassThru |
||||
New-Item -Path "C:\w\build-results" -ItemType "directory" -Force |
||||
Copy-Item -Path "C:\Users\circleci\AppData\Local\Temp\vslogs.zip" -Destination "C:\w\build-results\" |
||||
exit 1 |
||||
} |
||||
echo "VS 2015 installed." |
@ -1,35 +0,0 @@ |
||||
$VS_DOWNLOAD_LINK = "https://aka.ms/vs/15/release/vs_buildtools.exe" |
||||
$COLLECT_DOWNLOAD_LINK = "https://aka.ms/vscollect.exe" |
||||
$VS_INSTALL_ARGS = @("--nocache","--quiet","--wait", "--add Microsoft.VisualStudio.Workload.VCTools", |
||||
"--add Microsoft.VisualStudio.Component.VC.Tools.14.13", |
||||
"--add Microsoft.Component.MSBuild", |
||||
"--add Microsoft.VisualStudio.Component.Roslyn.Compiler", |
||||
"--add Microsoft.VisualStudio.Component.TextTemplating", |
||||
"--add Microsoft.VisualStudio.Component.VC.CoreIde", |
||||
"--add Microsoft.VisualStudio.Component.VC.Redist.14.Latest", |
||||
"--add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core", |
||||
"--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64", |
||||
"--add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Win81") |
||||
|
||||
curl.exe --retry 3 -kL $VS_DOWNLOAD_LINK --output vs_installer.exe |
||||
if ($LASTEXITCODE -ne 0) { |
||||
echo "Download of the VS 2017 installer failed" |
||||
exit 1 |
||||
} |
||||
|
||||
$process = Start-Process "${PWD}\vs_installer.exe" -ArgumentList $VS_INSTALL_ARGS -NoNewWindow -Wait -PassThru |
||||
Remove-Item -Path vs_installer.exe -Force |
||||
$exitCode = $process.ExitCode |
||||
if (($exitCode -ne 0) -and ($exitCode -ne 3010)) { |
||||
echo "VS 2017 installer exited with code $exitCode, which should be one of [0, 3010]." |
||||
curl.exe --retry 3 -kL $COLLECT_DOWNLOAD_LINK --output Collect.exe |
||||
if ($LASTEXITCODE -ne 0) { |
||||
echo "Download of the VS Collect tool failed." |
||||
exit 1 |
||||
} |
||||
Start-Process "${PWD}\Collect.exe" -NoNewWindow -Wait -PassThru |
||||
New-Item -Path "C:\w\build-results" -ItemType "directory" -Force |
||||
Copy-Item -Path "C:\Users\circleci\AppData\Local\Temp\vslogs.zip" -Destination "C:\w\build-results\" |
||||
exit 1 |
||||
} |
||||
echo "VS 2017 installed." |
Loading…
Reference in new issue