aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions/run-threads
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-06 18:04:17 +0200
committerEgor Tensin <egor@tensin.name>2026-06-06 18:04:17 +0200
commitef0952fadae6794e225c0c1654887408bcadbf64 (patch)
tree4f1b53f7e757f175aa7d39de36083dd4155c9a71 /.github/actions/run-threads
parentworkflows/test: reschedule for my convenience (diff)
downloadsetup-mingw-ef0952fadae6794e225c0c1654887408bcadbf64.tar.gz
setup-mingw-ef0952fadae6794e225c0c1654887408bcadbf64.zip
foo.cpp -> test/threads.cpp
Diffstat (limited to '.github/actions/run-threads')
-rw-r--r--.github/actions/run-threads/action.yml26
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