Update main.yml
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 8243790..bd2d18f 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -99,12 +99,10 @@ jobs:
- name: Build and test
run: |
if [ -n "${{ matrix.platform.image }}" ]; then
- mkdir /tmp/__home__
- mkdir build
docker_container="${{ github.repository }}/${{ matrix.platform.image }}:latest"
docker login https://${{ env.foo }} -u ${{ github.actor }} -p ${{ github.token }}
docker pull ${{ env.foo }}/${docker_container}
- docker run -v /tmp/__home__:/home/libgit2 -v $(pwd):/home/libgit2/source -v $(pwd)/build:/home/libgit2/build -e CC -e CMAKE_GENERATOR -e CMAKE_OPTIONS -e PKG_CONFIG_PATH -e SKIP_SSH_TESTS -e SKIP_NEGOTIATE_TESTS ${{ env.foo }}/${docker_container} "cd build && ../azure-pipelines/build.sh && ../azure-pipelines/test.sh"
+ docker run -v /tmp/__home__:/home/libgit2 -v $(pwd):/home/libgit2/source -w /home/libgit2/source -e CC -e CMAKE_GENERATOR -e CMAKE_OPTIONS -e PKG_CONFIG_PATH -e SKIP_SSH_TESTS -e SKIP_NEGOTIATE_TESTS ${{ env.foo }}/${docker_container} "mkdir build && cd build && ../azure-pipelines/build.sh && ../azure-pipelines/test.sh"
else
mkdir build && cd build
../azure-pipelines/build.sh