Build Python 2.7 -- 3.9 for Windows.
@@ -83,7 +83,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
- python: [2, 3]
+ python: [2.7.18, 3.5.4, 3.6.8, 3.7.9, 3.8.6, 3.9.0]
steps:
- uses: actions/checkout@v2
@@ -92,7 +92,7 @@ jobs:
shell: bash
run: |
choco install swig
- choco install python${{ matrix.python }}
+ choco install python$(echo ${{ matrix.python }} | head -c 1) --version=${{ matrix.python }}
python -m pip install -U pip setuptools
python -m pip install wheel
@@ -102,7 +102,7 @@ jobs:
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
- run: cmake $GITHUB_WORKSPACE -A x64 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DTINYSPLINE_ENABLE_PYTHON=True -DTINYSPLINE_PYTHON_VERSION=${{ matrix.python }}
+ run: cmake $GITHUB_WORKSPACE -A x64 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DTINYSPLINE_ENABLE_PYTHON=True -DTINYSPLINE_PYTHON_VERSION=$(echo ${{ matrix.python }} | head -c 1)
- name: Build
working-directory: ${{runner.workspace}}/build
