diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 42a794f576..4d462630e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -131,8 +131,8 @@ jobs: /Miniconda3/bin/conda init && bash ~/.bashrc && . ~/.bashrc cd ${RUNNER_WORKSPACE} # sed -i 's/PKG_CONFIG openssl /PKG_CONFIG openssl11 /g' configure - - name: Install Python dependencies - if: matrix.platform.build_python == 'ON' + - name: Install Python dependencies, non-Windows + if: matrix.platform.build_python == 'ON' && matrix.platform.os_type != 'windows' run: | cd ${RUNNER_WORKSPACE}/roadrunner if [ "${{ matrix.platform.os_type }}" == 'manylinux' ]; then @@ -140,17 +140,6 @@ jobs: /Miniconda3/envs/${{ env.python_v2_name }}/bin/python -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -r requirements.txt /Miniconda3/envs/${{ env.python_v3_name }}/bin/python -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -r requirements.txt /Miniconda3/envs/${{ env.python_v4_name }}/bin/python -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -r requirements.txt - elif [ "${{ matrix.platform.os_type }}" == 'windows' ]; then - echo "Test." - $pattern = '[\\]' - $temp = '${{ env.pythonLocation }}' -replace $pattern, '/' - echo "$temp" - ls $temp - '${{ env.pythonLocation }}\python.exe -m pip install -r requirements.txt' - '${{ env.pythonLocation }}\..\..\${{ env.python_v1 }}*\*\python.exe -m pip install -r requirements.txt' - '${{ env.pythonLocation }}\..\..\${{ env.python_v2 }}*\*\python.exe -m pip install -r requirements.txt' - '${{ env.pythonLocation }}\..\..\${{ env.python_v3 }}*\*\python.exe -m pip install -r requirements.txt' - '${{ env.pythonLocation }}\..\..\${{ env.python_v4 }}*\*\python.exe -m pip install -r requirements.txt' else python${{ env.python_v1 }} -m pip install -r requirements.txt python${{ env.python_v2 }} -m pip install -r requirements.txt @@ -158,6 +147,21 @@ jobs: python${{ env.python_v4 }} -m pip install -r requirements.txt fi + - name: Install Python dependencies, Windows + if: matrix.platform.build_python == 'ON' && matrix.platform.os_type == 'windows' + run: | + cd ${RUNNER_WORKSPACE}/roadrunner + echo "Test." + $pattern = '[\\]' + $temp = '${{ env.pythonLocation }}' -replace $pattern, '/' + echo "$temp" + ls $temp + '${{ env.pythonLocation }}\python.exe -m pip install -r requirements.txt' + '${{ env.pythonLocation }}\..\..\${{ env.python_v1 }}*\*\python.exe -m pip install -r requirements.txt' + '${{ env.pythonLocation }}\..\..\${{ env.python_v2 }}*\*\python.exe -m pip install -r requirements.txt' + '${{ env.pythonLocation }}\..\..\${{ env.python_v3 }}*\*\python.exe -m pip install -r requirements.txt' + '${{ env.pythonLocation }}\..\..\${{ env.python_v4 }}*\*\python.exe -m pip install -r requirements.txt' + - name: Set MSVC as the default compiler on Windows if: matrix.platform.os_type == 'windows' uses: ilammy/msvc-dev-cmd@v1.12.1