Skip to content

Commit e3ee5e4

Browse files
committed
fix(ci): run on windows
1 parent ff5522b commit e3ee5e4

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/lib_run.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,19 @@ jobs:
5757
fi
5858
sleep 1
5959
done
60-
kill $PID 2>/dev/null || true
61-
wait $PID 2>/dev/null || true
60+
if [[ "$RUNNER_OS" == "Windows" ]]; then
61+
taskkill //F //T //PID $PID 2>/dev/null || true
62+
else
63+
kill $PID 2>/dev/null || true
64+
wait $PID 2>/dev/null || true
65+
fi
66+
echo "Run log:"
67+
cat output.log
68+
echo ""
6269
if [ "$FOUND" = true ]; then
6370
echo "Success: Found target output"
6471
exit 0
6572
else
6673
echo "Failure: Timeout after 60s without finding target output"
67-
cat output.log
6874
exit 1
6975
fi

0 commit comments

Comments
 (0)