Skip to content

Commit 1a1d831

Browse files
committed
[Windows] DO NOT MERGE Test building swift-syntax/Examples
1 parent bdb32c9 commit 1a1d831

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

utils/build.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,6 +1856,19 @@ function Build-DocC() {
18561856
}
18571857
}
18581858

1859+
function Build-SwiftSyntaxExamples() {
1860+
$OutDir = Join-Path -Path $HostArch.BinaryCache -ChildPath swift-syntax-examples
1861+
1862+
Isolate-EnvVars {
1863+
$env:SWIFTCI_USE_LOCAL_DEPS=1
1864+
Build-SPMProject `
1865+
-Src $SourceCache\swift-syntax\Examples `
1866+
-Bin $OutDir `
1867+
-Arch $HostArch `
1868+
--product MacroExamplesPlayground
1869+
}
1870+
}
1871+
18591872
function Test-PackageManager() {
18601873
$OutDir = Join-Path -Path $HostArch.BinaryCache -ChildPath swift-package-manager
18611874
$SrcDir = if (Test-Path -Path "$SourceCache\swift-package-manager" -PathType Container) {
@@ -1997,6 +2010,7 @@ if (-not $SkipBuild) {
19972010
Install-HostToolchain
19982011

19992012
if (-not $SkipBuild) {
2013+
Invoke-BuildStep Build-SwiftSyntaxExamples $HostArch
20002014
Invoke-BuildStep Build-Inspect $HostArch
20012015
Invoke-BuildStep Build-DocC $HostArch
20022016
}

0 commit comments

Comments
 (0)