Skip to content

Commit 6524960

Browse files
authored
update-windows (#196)
1 parent 93ef7f2 commit 6524960

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/conda-package-cf.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
pytest -v --pyargs $MODULE_NAME
144144
145145
build_windows:
146-
runs-on: windows-2019
146+
runs-on: windows-latest
147147

148148
strategy:
149149
matrix:
@@ -181,6 +181,9 @@ jobs:
181181
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
182182
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
183183
184+
- name: Setup MSVC
185+
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
186+
184187
- name: Build conda package with NumPy 2.0
185188
run: |
186189
conda activate
@@ -209,7 +212,7 @@ jobs:
209212
python_ver: ['3.9', '3.10', '3.11', '3.12']
210213
numpy: ['numpy"<2"', 'numpy">=2"']
211214
experimental: [false]
212-
runner: [windows-2019]
215+
runner: [windows-latest]
213216
continue-on-error: ${{ matrix.experimental }}
214217
env:
215218
workdir: '${{ github.workspace }}'

.github/workflows/conda-package.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
pytest -v --pyargs $MODULE_NAME
152152
153153
build_windows:
154-
runs-on: windows-2019
154+
runs-on: windows-latest
155155

156156
strategy:
157157
matrix:
@@ -191,6 +191,9 @@ jobs:
191191
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
192192
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
193193
194+
- name: Setup MSVC
195+
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
196+
194197
- name: Build conda package
195198
run: |
196199
conda activate
@@ -218,7 +221,7 @@ jobs:
218221
matrix:
219222
python: ['3.9', '3.10', '3.11', '3.12']
220223
experimental: [false]
221-
runner: [windows-2019]
224+
runner: [windows-latest]
222225
continue-on-error: ${{ matrix.experimental }}
223226
env:
224227
workdir: '${{ github.workspace }}'

0 commit comments

Comments
 (0)