Skip to content

Commit 7b587e1

Browse files
authored
Update build_wheels_windows.yml
1 parent 10dd63c commit 7b587e1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
jobs:
2121
Build:
22-
runs-on: windows-2022
22+
runs-on: windows-2019
2323
strategy:
2424
fail-fast: false
2525
matrix:
@@ -61,19 +61,16 @@ jobs:
6161
uses: microsoft/[email protected]
6262
- name: Setup NASM
6363
uses: ilammy/setup-nasm@v1
64-
6564
- name: Build a package
6665
# CMake 3.25 regression fix. See https://stackoverflow.com/questions/74162633/problem-compiling-from-source-opencv-with-mvsc2019-in-64-bit-version
6766
run: |
68-
set "VISUAL_STUDIO=17"
6967
python --version
7068
python -m pip install --upgrade pip
7169
python -m pip install --upgrade setuptools
7270
python -m pip install cmake==3.24.2
7371
python -m pip install toml && python -c "import toml; c = toml.load('pyproject.toml'); print('\n'.join(c['build-system']['requires']))" >> requirements.txt | python -m pip install -r requirements.txt
7472
set "CI_BUILD=1" && python setup.py bdist_wheel --py-limited-api=cp37 --dist-dir=%cd%\wheelhouse -v
7573
shell: cmd
76-
7774
- name: Saving all wheels
7875
uses: actions/upload-artifact@v4
7976
with:
@@ -82,7 +79,7 @@ jobs:
8279

8380
Test:
8481
needs: [Build]
85-
runs-on: windows-2022
82+
runs-on: windows-2019
8683
defaults:
8784
run:
8885
shell: cmd

0 commit comments

Comments
 (0)