From 16ae31b0da2f9f896ec4061432066f6aace61cec Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 27 Aug 2021 23:02:10 +0200 Subject: [PATCH] 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). --- .github/workflows/ci_msw_cross.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci_msw_cross.yml b/.github/workflows/ci_msw_cross.yml index b0a093d064..a96459ba0b 100644 --- a/.github/workflows/ci_msw_cross.yml +++ b/.github/workflows/ci_msw_cross.yml @@ -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