Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ jobs:
.\make.ps1 -Command build -Config Release
- name: Test with Release Runtime
run: .\make.ps1 -Command test -Config Release -Uselldb yes
- name: Build examples
run: .\make.ps1 -Command build-examples

use_directives:
runs-on: ubuntu-latest
Expand Down
28 changes: 28 additions & 0 deletions make.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,34 @@ switch ($Command.ToLower())
}
break
}
"build-examples"
{
# Find all .pony files in examples directory, get their unique directories, and build each one
$examples = Get-ChildItem -Path "$srcDir\examples\*\*" -Filter "*.pony" -Recurse |
Select-Object -ExpandProperty Directory -Unique |
Where-Object { $_.FullName -notlike "*ffi-*" } |
Select-Object -ExpandProperty FullName

$failed = @()
foreach ($example in $examples)
{
Write-Output "Building example: $example"
& $outDir\ponyc.exe -d -s --checktree -o "$example" "$example"
if ($LastExitCode -ne 0)
{
$failed += $example
Write-Output "Failed to build example: $example"
}
}

if ($failed.Count -gt 0)
{
Write-Output "Failed to build the following examples:"
$failed | ForEach-Object { Write-Output " $_" }
throw "Some examples failed to build"
}
break
}
"stress-test-ubench-release"
{
$lldbcmd = 'C:\msys64\mingw64\bin\lldb.exe'
Expand Down