From 3e5cf7a5c7f7b67e02493255db6354f45ac5249c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Jun 2021 13:42:00 +0200 Subject: [PATCH] Fix owner after checkout --- .github/workflows/ci_msw_cross.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_msw_cross.yml b/.github/workflows/ci_msw_cross.yml index 55c404229a..ba99b14dac 100644 --- a/.github/workflows/ci_msw_cross.yml +++ b/.github/workflows/ci_msw_cross.yml @@ -112,8 +112,14 @@ jobs: with: submodules: 'recursive' - - name: Set environment variables + - name: System and environment setup run: | + normal_uid=`id --user` + + # The checkout actions runs as root and there doesn't seem to be any + # 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 cpu_count=`nproc`