Skip to content

Commit

Permalink
Use windows-2019 image because of v141 removal
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed May 20, 2024
1 parent d43c23c commit 09c4bcd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build_windows_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
fail-fast: false
matrix:
include:
- { os: "windows-2022", msvc-toolset: "v141", cxx-standard: "11", build-type: "Release" }
- { os: "windows-2022", msvc-toolset: "v141", cxx-standard: "11", build-type: "Debug" }
- { os: "windows-2019", msvc-toolset: "v141", cxx-standard: "11", build-type: "Release" }
- { os: "windows-2019", msvc-toolset: "v141", cxx-standard: "11", build-type: "Debug" }

- { os: "windows-2022", mingw-version: "7.5.0", cxx-standard: "11", build-type: "Release" }
- { os: "windows-2022", mingw-version: "7.5.0", cxx-standard: "11", build-type: "Debug" }
Expand Down Expand Up @@ -41,7 +41,15 @@ jobs:
if [[ "${{matrix.msvc-toolset}}" != "" ]] ; then
echo "MSVC_CMAKE_TOOLSET=${{matrix.msvc-toolset}}" >> ${GITHUB_ENV}
echo "PACKAGE=windows64-msvc" >> ${GITHUB_ENV}
elif [[ "${{matrix.mingw-version}}" != "" ]] ; then
# v141 toolset is not installed in windows-2022/VS2022 image by default
if [[ "${{matrix.msvc-toolset}}" == "v141" ]] ; then
echo "MSVC_CMAKE_GENERATOR=Visual Studio 16 2019" >> ${GITHUB_ENV}
else
echo "MSVC_CMAKE_GENERATOR=Visual Studio 17 2022" >> ${GITHUB_ENV}
fi
fi
if [[ "${{matrix.mingw-version}}" != "" ]] ; then
echo "MINGW64_TOOLCHAIN_ROOT=/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64" >> ${GITHUB_ENV}
echo "PACKAGE=windows64-mingw" >> ${GITHUB_ENV}
fi
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/build_windows_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
fail-fast: false
matrix:
include:
- { os: "windows-2022", python-version: "3.8" }
- { os: "windows-2022", python-version: "3.9" }
- { os: "windows-2022", python-version: "3.10" }
- { os: "windows-2022", python-version: "3.11" }
- { os: "windows-2022", python-version: "3.12" }
- { os: "windows-2019", python-version: "3.8" }
- { os: "windows-2019", python-version: "3.9" }
- { os: "windows-2019", python-version: "3.10" }
- { os: "windows-2019", python-version: "3.11" }
- { os: "windows-2019", python-version: "3.12" }

runs-on: ${{matrix.os}}
name: ${{matrix.os}}-python${{matrix.python-version}}
Expand All @@ -24,6 +24,7 @@ jobs:
run: |
echo "PYLINT_ENABLED=1" >> ${GITHUB_ENV}
echo "MYPY_ENABLED=1" >> ${GITHUB_ENV}
echo "MSVC_CMAKE_GENERATOR=Visual Studio 16 2019" >> ${GITHUB_ENV} # python wants v141 which exists in VS2019 only
- name: Install dependencies
shell: bash
Expand Down

0 comments on commit 09c4bcd

Please sign in to comment.