diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-10 15:58:56 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-10 15:58:56 +0300 |
commit | b4604c383adff8dc37ccdb4feb97084dd7b986a5 (patch) | |
tree | 41536e3460bf148b8764a9b059257f44d339ea28 /.github/workflows | |
parent | Cygwin: add mingw/bin to PATH (diff) | |
download | setup-mingw-b4604c383adff8dc37ccdb4feb97084dd7b986a5.tar.gz setup-mingw-b4604c383adff8dc37ccdb4feb97084dd7b986a5.zip |
workflow/test.yml: split building and running foo.exe
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/test.yml | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dbbff56..3f5dd8f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,8 +58,22 @@ jobs: - name: Build foo.exe run: | - $flags = '-std=c++11','-o','foo','foo.cpp' + $flags = '-std=c++14','-o','foo','foo.cpp' & '${{ steps.setup.outputs.gxx }}' $flags - if ('${{ runner.os }}' -eq 'Windows') { - .\foo.exe - } + + - name: Run foo.exe + run: | + $expected = @" + Doing something #1 + Doing something #2 + Doing something #3 + "@ + + $actual = & (Join-Path . foo.exe) + $actual = $actual -join [Environment]::NewLine + + $($actual -eq $expected) -or $(throw @" + Unexpected output: + $actual + "@) + if: runner.os == 'Windows' |