Skip to content

Commit 43df361

Browse files
authored
Update build_wheels_windows.yml
1 parent 0ed6932 commit 43df361

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,12 @@ jobs:
7171
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
7272
set "CI_BUILD=1" && python setup.py bdist_wheel --py-limited-api=cp37 --dist-dir=%cd%\wheelhouse -v
7373
shell: cmd
74-
- name: Saving all wheels
74+
75+
- name: Upload built wheel
7576
uses: actions/upload-artifact@v4
76-
with:
77-
name: wheels
78-
path: wheelhouse/opencv*.whl
79-
- name: Saving a wheel accordingly to matrix
80-
uses: actions/upload-artifact@v4
81-
with:
82-
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}-${{ matrix.platform }}
83-
path: wheelhouse/opencv*
77+
with:
78+
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}-${{ matrix.platform }}-${{ github.run_id }}-${{ github.job }}
79+
path: wheelhouse/opencv*.whl
8480

8581
Test:
8682
needs: [Build]
@@ -117,11 +113,12 @@ jobs:
117113
with:
118114
python-version: ${{ matrix.python-version }}
119115
architecture: ${{ matrix.platform }}
120-
- name: Download a wheel accordingly to matrix
116+
117+
- name: Download all artifacts
121118
uses: actions/download-artifact@v3
122-
with:
123-
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}-${{ matrix.platform }}
124-
path: wheelhouse/
119+
with:
120+
path: wheelhouse/
121+
125122
- name: Package installation
126123
run: |
127124
cd ${{ github.workspace }}/tests
@@ -148,10 +145,11 @@ jobs:
148145
run:
149146
shell: bash
150147
steps:
151-
- uses: actions/download-artifact@v3
148+
- name: Download all wheels
149+
uses: actions/download-artifact@v3
152150
with:
153-
name: wheels
154151
path: wheelhouse/
152+
155153
- name: Upload wheels for opencv_python_rolling
156154
run: |
157155
python -m pip install twine
@@ -178,9 +176,9 @@ jobs:
178176
run:
179177
shell: bash
180178
steps:
181-
- uses: actions/download-artifact@v3
179+
- name: Download all wheels
180+
uses: actions/download-artifact@v3
182181
with:
183-
name: wheels
184182
path: wheelhouse/
185183
- name: Upload all wheels
186184
run: |
@@ -196,9 +194,9 @@ jobs:
196194
run:
197195
shell: bash
198196
steps:
199-
- uses: actions/download-artifact@v3
197+
- name: Download all wheels
198+
uses: actions/download-artifact@v3
200199
with:
201-
name: wheels
202200
path: wheelhouse/
203201
- name: Upload wheels for opencv_python
204202
run: |

0 commit comments

Comments
 (0)