Skip to content

Commit 9e0fd17

Browse files
committed
default toolset for windows 2022
1 parent 971f87b commit 9e0fd17

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/publish.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-latest]
14+
os: [ubuntu-latest, ubuntu-24.04-arm, windows-2022, macos-latest]
1515
cuda: [cpu, cu118, cu124]
1616
exclude:
1717
- os: ubuntu-24.04-arm
@@ -46,12 +46,10 @@ jobs:
4646

4747
- name: Activate MSVC
4848
uses: ilammy/msvc-dev-cmd@v1
49-
if: matrix.os == 'windows-latest'
50-
with:
51-
toolset: "17.0"
49+
if: matrix.os == 'windows-2022'
5250

5351
- name: Build wheels
54-
if: matrix.os != 'windows-latest'
52+
if: matrix.os != 'windows-2022'
5553
shell: bash -l {0}
5654
run: |
5755
if [[ "${{ runner.os }}" == "Linux" ]]; then
@@ -65,7 +63,7 @@ jobs:
6563
WITH_CUDA: ${{ matrix.cuda != 'cpu' && '1' || '0' }}
6664

6765
- name: Build wheels
68-
if: matrix.os == 'windows-latest'
66+
if: matrix.os == 'windows-2022'
6967
shell: cmd # Use cmd on Windows to avoid bash environment taking priority over MSVC variables
7068
run: python -m cibuildwheel --output-dir wheelhouse
7169
env:

0 commit comments

Comments
 (0)