Skip to content

Commit 308fc15

Browse files
authored
Update main.yml
1 parent 074c775 commit 308fc15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@ jobs:
9999
- name: Build and test
100100
run: |
101101
if [ -n "${{ matrix.platform.image }}" ]; then
102+
mkdir /tmp/__home__
102103
mkdir build
103104
docker_container="${{ github.repository }}/${{ matrix.platform.image }}:latest"
104105
docker login https://${{ env.foo }} -u ${{ github.actor }} -p ${{ github.token }}
105106
docker pull ${{ env.foo }}/${docker_container}
106-
docker run ${{ env.foo }}/${docker_container} -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 echo hi
107+
docker run ${{ env.foo }}/${docker_container} -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 echo hi
107108
else
108109
mkdir build && cd build
109110
../azure-pipelines/build.sh

0 commit comments

Comments
 (0)