From ef0952fadae6794e225c0c1654887408bcadbf64 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 6 Jun 2026 18:04:17 +0200 Subject: foo.cpp -> test/threads.cpp --- .github/actions/run-threads/action.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/actions/run-threads/action.yml (limited to '.github/actions/run-threads') 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 -- cgit v1.3