Skip to content

Commit 51f296a

Browse files
ci: Run persistent wineserver to speed up wine
1 parent 3fb3269 commit 51f296a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ci/cirrus.sh

+12
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ set -x
55

66
export LC_ALL=C
77

8+
# Start persistent wineserver if necessary.
9+
# This speeds up jobs with many invocations of wine (e.g., ./configure with MSVC) tremendously.
10+
case "$WRAPPER_CMD" in
11+
*wine*)
12+
# This is apparently only reliable when we run a dummy command such as "hh.exe" afterwards.
13+
wineserver -p && wine hh.exe
14+
;;
15+
esac
16+
817
env >> test_env.log
918

1019
$CC -v || true
@@ -64,6 +73,9 @@ then
6473
make precomp
6574
fi
6675

76+
# Shutdown wineserver again
77+
wineserver -k || true
78+
6779
# Check that no repo files have been modified by the build.
6880
# (This fails for example if the precomp files need to be updated in the repo.)
6981
git diff --exit-code

0 commit comments

Comments
 (0)