diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-06 18:04:17 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-06 18:04:17 +0200 |
| commit | ef0952fadae6794e225c0c1654887408bcadbf64 (patch) | |
| tree | 4f1b53f7e757f175aa7d39de36083dd4155c9a71 /.github/actions/run-threads/action.yml | |
| parent | workflows/test: reschedule for my convenience (diff) | |
| download | setup-mingw-ef0952fadae6794e225c0c1654887408bcadbf64.tar.gz setup-mingw-ef0952fadae6794e225c0c1654887408bcadbf64.zip | |
foo.cpp -> test/threads.cpp
Diffstat (limited to '.github/actions/run-threads/action.yml')
| -rw-r--r-- | .github/actions/run-threads/action.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/actions/run-threads/action.yml b/.github/actions/run-threads/action.yml new file mode 100644 index 0000000..fd8e7ae --- /dev/null +++ b/.github/actions/run-threads/action.yml @@ -0,0 +1,26 @@ +name: Run threads.exe +description: Run threads.exe and verify its output +runs: + using: composite + steps: + - run: | + $expected = @" + Doing something #1 + Doing something #2 + Doing something #3 + "@ + + $actual = & (Join-Path . test threads) + $actual = $actual -join [Environment]::NewLine + + echo @" + Expected output: + $expected + "@ + echo @" + Actual output: + $actual + "@ + + $($actual -eq $expected) -or $(throw "Unexpected output!") + shell: pwsh |
