Unverified Commit 074c7753 by Edward Thomson Committed by GitHub

Update main.yml

parent 5f4b3017
...@@ -99,10 +99,11 @@ jobs: ...@@ -99,10 +99,11 @@ jobs:
- name: Build and test - name: Build and test
run: | run: |
if [ -n "${{ matrix.platform.image }}" ]; then if [ -n "${{ matrix.platform.image }}" ]; then
mkdir build
docker_container="${{ github.repository }}/${{ matrix.platform.image }}:latest" docker_container="${{ github.repository }}/${{ matrix.platform.image }}:latest"
docker login https://${{ env.foo }} -u ${{ github.actor }} -p ${{ github.token }} docker login https://${{ env.foo }} -u ${{ github.actor }} -p ${{ github.token }}
docker pull ${{ env.foo }}/${docker_container} 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 else
mkdir build && cd build mkdir build && cd build
../azure-pipelines/build.sh ../azure-pipelines/build.sh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment