workflows/test.yml: split building and running foo.exe

This commit is contained in:
Egor Tensin 2021-01-01 11:09:14 +03:00
parent 8d8d2c1c05
commit 9b71c16666

View file

@ -75,4 +75,17 @@ jobs:
$flags += '-lpthread'
}
& '${{ steps.setup.outputs.clangxx }}' $flags
& (Join-Path . foo)
- name: Run foo.exe
run: |
$expected = @"
Doing something #1
Doing something #2
Doing something #3
"@
$actual = & (Join-Path . foo)
$actual = $actual -join [Environment]::NewLine
$($actual -eq $expected) -or $(throw @"
Unexpected output:
$actual
"@)