Skip to content

Commit 2d1f06d

Browse files
committed
Make basemap-for-windows action define VCVERSION
1 parent 66535ac commit 2d1f06d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/basemap-for-windows.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,23 @@ jobs:
8787
with:
8888
python-version: "${{ matrix.python-version }}"
8989
architecture: ${{ matrix.arch }}
90+
-
91+
name: Define MSVC toolchain version
92+
run: |
93+
if ("${{ matrix.python-version }}" -lt "3.3") {
94+
Set-Variable -Name "vcversion" -Value "9.0"
95+
} elseif ("${{ matrix.python-version }}" -lt "3.5") {
96+
Set-Variable -Name "vcversion" -Value "10.0"
97+
} else {
98+
Set-Variable -Name "vcversion" -Value "14.x"
99+
}
100+
echo "VCVERSION=${vcversion}" >> ${GITHUB_ENV}
90101
-
91102
name: Install MSVC toolchain
92103
uses: ilammy/msvc-dev-cmd@v1
93104
with:
94105
arch: ${{ matrix.arch }}
106+
toolset: ${{ env.VCVERSION }}
95107
-
96108
name: Install Python base packages
97109
run: |

0 commit comments

Comments
 (0)