Fix setting DEBIAN_FRONTEND for apt-get install

Do it in the command executed by sudo, as sudo doesn't propagate the
environment variable values by default (--preserve-env option could be
used to do it, but it's simpler to avoid it).
This commit is contained in:
Vadim Zeitlin 2021-08-27 23:02:10 +02:00
parent 4328e81dde
commit 16ae31b0da

View File

@ -93,8 +93,6 @@ jobs:
- name: Install prerequisites
run: |
export DEBIAN_FRONTEND=noninteractive
packages="git make wine x11-xserver-utils xvfb"
case "${HOST_TRIPLET}" in
@ -116,7 +114,7 @@ jobs:
;;
esac
sudo apt-get -qq install $packages
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install $packages
echo "wxTEST_RUNNER=${winerun}" >> $GITHUB_ENV