Skip to content

Commit c7354fa

Browse files
authored
Update build_wheels_windows.yml
1 parent b492445 commit c7354fa

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ jobs:
112112
echo %CMAKE_ARGS%
113113
114114
python setup.py bdist_wheel --py-limited-api=cp37 --dist-dir=%cd%\\wheelhouse -v
115+
for /d %%D in (build\lib*) do set BUILDDIR=%%D
116+
if exist %BUILDDIR%\cv2 (
117+
copy /Y openblas\bin\libopenblas.dll %BUILDDIR%\cv2\libopenblas.dll
118+
) else (
119+
echo [!] cv2 directory not found in %BUILDDIR%
120+
exit /b 1
121+
)
115122
shell: cmd
116123

117124
- name: Saving all wheels
@@ -120,7 +127,6 @@ jobs:
120127
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}-${{ matrix.platform }}
121128
path: |
122129
wheelhouse/opencv*
123-
openblas/**
124130
125131
Test:
126132
needs: [Build]
@@ -166,9 +172,6 @@ jobs:
166172

167173
- name: Package installation
168174
run: |
169-
$env:OpenBLAS_HOME = "$PWD"
170-
$env:PATH = "$env:OpenBLAS_HOME\wheelhouse\openblas\bin;$env:PATH"
171-
Write-Host "OpenBLAS_HOME=$env:OpenBLAS_HOME"
172175
cd ${{ github.workspace }}/tests
173176
&python -m pip install --user --no-warn-script-location (ls "../wheelhouse/opencv*.whl")
174177
if ($LastExitCode -ne 0) {throw $LastExitCode}

0 commit comments

Comments
 (0)