@@ -813,7 +813,7 @@ function Invoke-BuildStep {
813813 $NextArg = $RemainingArgs [$RemainingArgs.IndexOf ($Arg ) + 1 ]
814814 if ($NextArg -is [string ] -and ! $NextArg.StartsWith (' -' )) {
815815 $SplatArgs [$ParamName ] = $NextArg
816- $Enumerator.MoveNext () # Skip NextArg
816+ $Enumerator.MoveNext () | Out-Null # Skip NextArg
817817 continue
818818 }
819819 }
@@ -1121,6 +1121,16 @@ function Invoke-VsDevShell([Hashtable] $Platform) {
11211121
11221122function Get-Dependencies {
11231123 Record- OperationTime $BuildPlatform " Get-Dependencies" {
1124+ function Write-Success ([string ] $Description ) {
1125+ $HeavyCheckMark = @ {
1126+ Object = [Char ]0x2714
1127+ ForegroundColor = ' DarkGreen'
1128+ NoNewLine = $true
1129+ }
1130+ Write-Host @HeavyCheckMark
1131+ Write-Host " $Description "
1132+ }
1133+
11241134 Write-Host " [$ ( [DateTime ]::Now.ToString(" yyyy-MM-dd HH:mm:ss" )) ] Get-Dependencies ..." - ForegroundColor Cyan
11251135 $ProgressPreference = " SilentlyContinue"
11261136
@@ -1171,7 +1181,7 @@ function Get-Dependencies {
11711181
11721182 $Destination = if ($CreateExtractPath ) { $Destination } else { $BinaryCache }
11731183
1174- Write-Output " Extracting '$ZipFileName ' ..."
1184+ # Write-Output "Extracting '$ZipFileName' ..."
11751185 New-Item - ItemType Directory - ErrorAction Ignore - Path $BinaryCache | Out-Null
11761186 Expand-Archive - Path $Source - DestinationPath $Destination - Force
11771187 }
@@ -1191,12 +1201,12 @@ function Get-Dependencies {
11911201 $ExtractedLastWriteTime = (Get-Item $Destination ).LastWriteTime
11921202 # Compare the last write times
11931203 if ($TarLastWriteTime -le $ExtractedLastWriteTime ) {
1194- Write-Output " '$SourceName ' is already extracted and up to date."
1204+ # Write-Output "'$SourceName' is already extracted and up to date."
11951205 return
11961206 }
11971207 }
11981208
1199- Write-Output " Extracting '$Source ' ..."
1209+ # Write-Output "Extracting '$Source' ..."
12001210 New-Item - ItemType Directory - ErrorAction Ignore - Path $Destination | Out-Null
12011211 tar - xvf $Source - C $Destination | Out-Null
12021212 }
@@ -1217,12 +1227,12 @@ function Get-Dependencies {
12171227 $installerWriteTime = (Get-Item $source ).LastWriteTime
12181228 $extractedWriteTime = (Get-Item $destination ).LastWriteTime
12191229 if ($installerWriteTime -le $extractedWriteTime ) {
1220- Write-Output " '$InstallerExeName ' is already extracted and up to date."
1230+ # Write-Output "'$InstallerExeName' is already extracted and up to date."
12211231 return
12221232 }
12231233 }
12241234
1225- Write-Output " Extracting '$InstallerExeName ' ..."
1235+ # Write-Output "Extracting '$InstallerExeName' ..."
12261236
12271237 # The new runtime MSI is built to expand files into the immediate directory. So, setup the installation location.
12281238 New-Item - ItemType Directory - ErrorAction Ignore $BinaryCache \toolchains\$ToolchainName \LocalApp\Programs\Swift\Runtimes\$ (Get-PinnedToolchainVersion )\usr\bin | Out-Null
@@ -1238,17 +1248,14 @@ function Get-Dependencies {
12381248 $syft = Get-Syft
12391249 DownloadAndVerify $syft.URL " $BinaryCache \syft-$SyftVersion .zip" $syft.SHA256
12401250 Expand-ZipFile syft- $SyftVersion.zip $BinaryCache syft- $SyftVersion
1251+ Write-Success " syft $SyftVersion "
12411252 }
12421253
12431254 if ($SkipBuild -and $SkipPackaging ) { return }
12441255
1245- $Stopwatch = [Diagnostics.Stopwatch ]::StartNew()
1246- if ($ToBatch ) {
1247- Write-Host - ForegroundColor Cyan " [$ ( [DateTime ]::Now.ToString(" yyyy-MM-dd HH:mm:ss" )) ] Get-Dependencies..."
1248- }
1249-
12501256 DownloadAndVerify $WiX.URL " $BinaryCache \WiX-$ ( $WiX.Version ) .zip" $WiX.SHA256
12511257 Expand-ZipFile WiX- $ ($WiX.Version ).zip $BinaryCache WiX- $ ($WiX.Version )
1258+ Write-Success " WiX $ ( $WiX.Version ) "
12521259
12531260 if ($SkipBuild ) { return }
12541261
@@ -1261,6 +1268,7 @@ function Get-Dependencies {
12611268 } else {
12621269 Expand-ZipFile sccache- $SCCacheVersion .$FileExtension $BinaryCache sccache- $SCCacheVersion
12631270 }
1271+ Write-Success " sccache $SCCacheVersion "
12641272 }
12651273
12661274 DownloadAndVerify $PinnedBuild " $BinaryCache \$PinnedToolchain .exe" $PinnedSHA256
@@ -1271,11 +1279,13 @@ function Get-Dependencies {
12711279 $GnuWin32MakeHash = " fb66a02b530f7466f6222ce53c0b602c5288e601547a034e4156a512dd895ee7"
12721280 DownloadAndVerify $GnuWin32MakeURL " $BinaryCache \GnuWin32Make-4.4.1.zip" $GnuWin32MakeHash
12731281 Expand-ZipFile GnuWin32Make- 4.4 .1. zip $BinaryCache GnuWin32Make- 4.4 .1
1282+ Write-Success " GNUWin32 make 4.4.1"
12741283 }
12751284
12761285 # TODO(compnerd) stamp/validate that we need to re-extract
12771286 New-Item - ItemType Directory - ErrorAction Ignore $BinaryCache \toolchains | Out-Null
12781287 Extract- Toolchain " $PinnedToolchain .exe" $BinaryCache $PinnedToolchain.TrimStart (" swift-" ).TrimEnd(" -a-windows10" )
1288+ Write-Success " Swift Toolchain $PinnedVersion "
12791289
12801290 function Get-KnownPython ([string ] $ArchName ) {
12811291 if (-not $KnownPythons.ContainsKey ($PythonVersion )) {
@@ -1289,17 +1299,19 @@ function Get-Dependencies {
12891299 DownloadAndVerify $Python.URL " $BinaryCache \Python$ArchName -$PythonVersion .zip" $Python.SHA256
12901300 if (-not $ToBatch ) {
12911301 Expand-ZipFile Python$ArchName - $PythonVersion.zip " $BinaryCache " Python$ArchName - $PythonVersion
1302+ Write-Success " $ArchName Python $PythonVersion "
12921303 }
12931304 }
12941305
12951306 function Install-PIPIfNeeded () {
12961307 try {
12971308 Invoke-Program - Silent " $ ( Get-PythonExecutable ) " - m pip
12981309 } catch {
1299- Write-Output " Installing pip ..."
1310+ # Write-Output "Installing pip ..."
13001311 Invoke-Program - OutNull " $ ( Get-PythonExecutable ) " ' -I' - m ensurepip - U -- default- pip
13011312 } finally {
1302- Write-Output " pip installed."
1313+ # Write-Output "pip installed."
1314+ Write-Success " pip"
13031315 }
13041316 }
13051317
@@ -1314,7 +1326,7 @@ function Get-Dependencies {
13141326
13151327 function Install-PythonModule ([string ] $ModuleName ) {
13161328 if (Test-PythonModuleInstalled $ModuleName ) {
1317- Write-Output " $ModuleName already installed."
1329+ # Write-Output "$ModuleName already installed."
13181330 return ;
13191331 }
13201332 $TempRequirementsTxt = New-TemporaryFile
@@ -1326,7 +1338,8 @@ function Get-Dependencies {
13261338 Write-Output " $ ( $Dependencies [$i ]) ==$ ( $Dependency.Version ) --hash=`" sha256:$ ( $Dependency.SHA256 ) `" " >> $TempRequirementsTxt
13271339 }
13281340 Invoke-Program - OutNull " $ ( Get-PythonExecutable ) " ' -I' - m pip install - r $TempRequirementsTxt -- require- hashes -- no- binary== :all: -- disable-pip - version- check
1329- Write-Output " $ModuleName installed."
1341+ # Write-Output "$ModuleName installed."
1342+ Write-Success $ModuleName
13301343 }
13311344
13321345 function Install-PythonModules () {
@@ -1350,6 +1363,7 @@ function Get-Dependencies {
13501363 $NDK = Get-AndroidNDK
13511364 DownloadAndVerify $NDK.URL " $BinaryCache \android-ndk-$AndroidNDKVersion -windows.zip" $NDK.SHA256
13521365 Expand-ZipFile - ZipFileName " android-ndk-$AndroidNDKVersion -windows.zip" - BinaryCache $BinaryCache - ExtractPath " android-ndk-$AndroidNDKVersion " - CreateExtractPath $false
1366+ Write-Success " Android NDK $AndroidNDKVersion "
13531367 }
13541368
13551369 if ($IncludeDS2 ) {
@@ -1359,6 +1373,7 @@ function Get-Dependencies {
13591373 DownloadAndVerify $WinFlexBisonURL " $BinaryCache \win_flex_bison-$WinFlexBisonVersion .zip" $WinFlexBisonHash
13601374
13611375 Expand-ZipFile - ZipFileName " win_flex_bison-$WinFlexBisonVersion .zip" - BinaryCache $BinaryCache - ExtractPath " win_flex_bison"
1376+ Write-Success " flex/bison $WinFlexBisonVersion "
13621377 }
13631378
13641379 if ($WinSDKVersion ) {
0 commit comments