From 9ae10bd3d95acebd3dce62a1f34e387190318635 Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Mon, 23 Sep 2024 00:40:17 +0200 Subject: [PATCH] Fix Windows --- .github/workflows/run-help.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-help.yml b/.github/workflows/run-help.yml index cc1c2170ee6..459025985be 100644 --- a/.github/workflows/run-help.yml +++ b/.github/workflows/run-help.yml @@ -109,6 +109,8 @@ jobs: name: msvc-${{ matrix.arch }} - name: Display help run: > - $result = & lmms-*.exe "--help" | + $exe = Get-ChildItem -Path . -Filter "lmms-*.exe" | Select-Object -First 1; + if ($null -eq $exe) { exit 1 }; + $result = & $exe.FullName "--help" | Select-String "Usage: lmms"; if($result.Matches.Count -eq 0) { exit 1 }