mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 21:29:00 +08:00
070a18974b
Included is a script that sets up all vcpkg's Azure infrastructure for Windows PR tests, and several updates to baselines. The baseline updates are generally caused by an updated copy of the MSVC++ compiler caused by updating the VMs, but some are caused by missed failures only detected now because this did a cleared out archives directory first. Some of the build infrastructure isn't what I'd call 'pretty' (e.g. we're split into more scripts and such than I'd like) but this mirrors how our existing PR system works. It is expected that the existing vcpkg Windows PR system will hate these baseline updates so we'll need to merge this, then remove that (duplicate) workflow immediately afterwards, then delete all the Windows VMs powering the old infrastructure.
18 lines
490 B
PowerShell
18 lines
490 B
PowerShell
# Copyright (c) Microsoft Corporation.
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
<#
|
|
.SYNOPSIS
|
|
Prepares the virtual machine for imaging.
|
|
|
|
.DESCRIPTION
|
|
Runs the `sysprep` utility to prepare the system for imaging.
|
|
See https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/sysprep--system-preparation--overview
|
|
for more information.
|
|
#>
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
Write-Host 'Running sysprep'
|
|
& C:\Windows\system32\sysprep\sysprep.exe /oobe /generalize /shutdown
|