From b9fb8358b35431d9f1560b018d3a3b42fb698924 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Jun 2021 14:34:49 +0200 Subject: [PATCH] Add the directory containing MinGW DLLs to Wine PATH too These DLLs are required for running any applications built using MinGW. --- .github/workflows/ci_msw_cross.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_msw_cross.yml b/.github/workflows/ci_msw_cross.yml index c7020474fd..537f4ba257 100644 --- a/.github/workflows/ci_msw_cross.yml +++ b/.github/workflows/ci_msw_cross.yml @@ -120,7 +120,10 @@ jobs: # way to change this, so just adjust the owner after checkout. sudo chown -R $normal_uid $GITHUB_WORKSPACE - echo "WINEPATH=$(winepath --windows $(pwd)/lib)" >> $GITHUB_ENV + # Add the directories containing MinGW and wx DLLs to Wine path. + winepath="$(winepath --windows /usr/lib/gcc/${HOST_TRIPLET}/$(${HOST_TRIPLET}-gcc -dumpversion|tr -d '\r'))" + winepath="${winepath};$(winepath --windows $(pwd)/lib)" + echo "WINEPATH=${winepath}" >> $GITHUB_ENV cpu_count=`nproc` ((cpu_count++))