diff --git a/.github/workflows/windows_release.yml b/.github/workflows/windows_release.yml index f492cfec7e9..7799b161b06 100644 --- a/.github/workflows/windows_release.yml +++ b/.github/workflows/windows_release.yml @@ -9,6 +9,7 @@ env: CMAKE_Fortran_COMPILER: "/c/msys64/mingw64/bin/x86_64-w64-mingw32-gfortran.exe" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BUILD_TYPE: Release + Python_REQUIRED_VERSION: 3.7 jobs: windows_release: @@ -32,10 +33,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.7 + - name: Set up Python ${{ env.Python_REQUIRED_VERSION }} uses: actions/setup-python@v2 + id: setup-python with: - python-version: 3.7 + python-version: ${{ env.Python_REQUIRED_VERSION }} architecture: ${{ matrix.arch }} - name: Setup QtIFW 4.x @@ -55,8 +57,8 @@ jobs: set -x echo "Downloading MiKTeX CLI installer" # We download from a specific miror already # TODO: Should store this setup package somewhere ourselves - curl -L -O https://ctan.math.illinois.edu/systems/win32/miktex/setup/windows-x64/miktexsetup-4.1-x64.zip - unzip miktexsetup-4.1-x64.zip + curl -L -O https://ctan.math.illinois.edu/systems/win32/miktex/setup/windows-x64/miktexsetup-4.2-x64.zip + unzip miktexsetup-4.2-x64.zip echo "Setting up the local package directory via download" ./miktexsetup_standalone --verbose \ @@ -104,8 +106,10 @@ jobs: run: | set -x cmake -G "Visual Studio 16 2019" -A ${{ matrix.vs-generator }} \ - -DLINK_WITH_PYTHON=ON -DBUILD_FORTRAN=ON -DBUILD_PACKAGE:BOOL=ON \ - -DDOCUMENTATION_BUILD="BuildWithAll" -DTEX_INTERACTION="batchmode" \ + -DLINK_WITH_PYTHON:BOOL=ON -DPython_REQUIRED_VERSION:STRING=${{ steps.setup-python.outputs.python-version }} \ + -DPython_ROOT_DIR:PATH=$RUNNER_TOOL_CACHE/Python/${{ steps.setup-python.outputs.python-version }}/${{ matrix.arch }}/ \ + -DBUILD_FORTRAN:BOOL=ON -DBUILD_PACKAGE:BOOL=ON \ + -DDOCUMENTATION_BUILD:STRING="BuildWithAll" -DTEX_INTERACTION:STRING="batchmode" \ ../ - name: Build Package