Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bab1cb5

Browse files
committed
Change owner of files in container to fix MinVer warning
1 parent 7e54774 commit bab1cb5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,8 @@ jobs:
8585
run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
8686
- name: Run ${{ matrix.tfm }} tests
8787
run: |
88+
pre_chown_command="chown -R root /app"
8889
test_command="dotnet test LibGit2Sharp.sln --configuration Release -p:TargetFrameworks=${{ matrix.tfm }} --logger "GitHubActions" -p:ExtraDefine=LEAKS_IDENTIFYING"
89-
docker run -t --rm --platform linux/${{ matrix.arch }} -v "$PWD:/app" gittools/build-images:${{ matrix.distro }}-sdk-${{ matrix.sdk }} sh -c "$test_command"
90+
post_chown_command="chown -R $UID /app"
91+
docker run -t --rm --platform linux/${{ matrix.arch }} -v "$PWD:/app" gittools/build-images:${{ matrix.distro }}-sdk-${{ matrix.sdk }} sh -c "$pre_chown_command && $test_command && post_chown_command"
92+

0 commit comments

Comments
 (0)