-
Notifications
You must be signed in to change notification settings - Fork 120
/
DoAll.ps1
50 lines (36 loc) · 858 Bytes
/
DoAll.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#Requires -Version 7.0
param
(
[switch]$Clean,
[switch]$ExcludePackages,
[switch]$ExcludeSamples,
[switch]$ExcludeTests,
[switch]$SkipInstallTools,
[ValidateSet("crossarch", "x64", "x86", "arm64")]
[string]
$arch = "crossarch"
)
# Run this script so it throws if VS isn't installed with the required workloads.
& "$PSScriptRoot\scripts\Get-VSPath.ps1" | Out-Null
if ($Clean.IsPresent)
{
.\scripts\CleanOutputs.ps1
}
if (!$SkipInstallTools.IsPresent)
{
. .\scripts\CommonUtils.ps1
Install-BuildTools -Clean:$Clean.IsPresent
}
.\scripts\BuildMetadataBin.ps1 -arch $arch -SkipInstallTools
if (!$ExcludePackages)
{
.\scripts\DoPackages.ps1 -SkipInstallTools
}
if (!$ExcludeSamples)
{
.\scripts\DoSamples.ps1 -SkipInstallTools
}
if (!$ExcludeTests)
{
.\scripts\DoTests.ps1 -SkipInstallTools
}