Skip to content

Commit

Permalink
ci: Run persistent wineserver to speed up wine
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Jun 29, 2022
1 parent 3fb3269 commit 51f296a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ci/cirrus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 51f296a

Please sign in to comment.