Commit 074c7753fc266d17d31907f2795b64c5a126797f

Edward Thomson 2020-06-06T23:49:42

Update main.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 07f4b7e..add1d05 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -99,10 +99,11 @@ jobs:
     - name: Build and test
       run: |
         if [ -n "${{ matrix.platform.image }}" ]; then
+          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 ${{ env.foo }}/${docker_container} echo hi
+          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
         else
           mkdir build && cd build
           ../azure-pipelines/build.sh