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 }