From 243649e812ee76c1cb743f4ffc65b21a32a96f5d Mon Sep 17 00:00:00 2001 From: Rintaro Ishizaki Date: Fri, 12 Apr 2024 17:27:42 -0700 Subject: [PATCH] [Windows] DO NOT MERGE Test building swift-syntax/Examples --- utils/build.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/utils/build.ps1 b/utils/build.ps1 index f5f7307052fe1..62a3185ef0e88 100644 --- a/utils/build.ps1 +++ b/utils/build.ps1 @@ -1942,6 +1942,19 @@ function Build-DocC() { } } +function Build-SwiftSyntaxExamples() { + $OutDir = Join-Path -Path $HostArch.BinaryCache -ChildPath swift-syntax-examples + + Isolate-EnvVars { + $env:SWIFTCI_USE_LOCAL_DEPS=1 + Build-SPMProject ` + -Src $SourceCache\swift-syntax\Examples ` + -Bin $OutDir ` + -Arch $HostArch ` + --product MacroExamplesPlayground + } +} + function Test-PackageManager() { $OutDir = Join-Path -Path $HostArch.BinaryCache -ChildPath swift-package-manager $SrcDir = if (Test-Path -Path "$SourceCache\swift-package-manager" -PathType Container) { @@ -2093,6 +2106,7 @@ if (-not $SkipBuild) { Install-HostToolchain if (-not $SkipBuild -and -not $IsCrossCompiling) { + Invoke-BuildStep Build-SwiftSyntaxExamples $HostArch Invoke-BuildStep Build-Inspect $HostArch Invoke-BuildStep Build-DocC $HostArch }