ci: Run persistent wineserver to speed up wine

This commit is contained in:
Tim Ruffing 2022-03-16 14:33:37 +01:00
parent 3fb3269c22
commit 51f296a46c
1 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,15 @@ set -x
export LC_ALL=C
# Start persistent wineserver if necessary.
# This speeds up jobs with many invocations of wine (e.g., ./configure with MSVC) tremendously.
case "$WRAPPER_CMD" in
*wine*)
# This is apparently only reliable when we run a dummy command such as "hh.exe" afterwards.
wineserver -p && wine hh.exe
;;
esac
env >> test_env.log
$CC -v || true
@ -64,6 +73,9 @@ then
make precomp
fi
# Shutdown wineserver again
wineserver -k || true
# Check that no repo files have been modified by the build.
# (This fails for example if the precomp files need to be updated in the repo.)
git diff --exit-code