Skip to content

Commit 8f48cbf

Browse files
authored
Update main.yml
1 parent 6bf744d commit 8f48cbf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,10 @@ jobs:
9999
- name: Build and test
100100
run: |
101101
if [ -n "${{ matrix.platform.image }}" ]; then
102-
mkdir /tmp/__home__
103-
mkdir build
104102
docker_container="${{ github.repository }}/${{ matrix.platform.image }}:latest"
105103
docker login https://${{ env.foo }} -u ${{ github.actor }} -p ${{ github.token }}
106104
docker pull ${{ env.foo }}/${docker_container}
107-
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"
105+
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"
108106
else
109107
mkdir build && cd build
110108
../azure-pipelines/build.sh

0 commit comments

Comments
 (0)